Thursday, January 22

C code implementing a simple DFA

  Hello freinds,  Here I am posting my C implementation of DFA shown below. This DFA will accept any string containing 'a's and 'b' and last symbol should be 'a'. #include <stdio.h> #define TOTAL_STATES 2 #define FINAL_STATES 1 #define ALPHABET_CHARCTERS 2 #define UNKNOWN_SYMBOL_ERR 0 #define NOT_REACHED_FINAL_STATE 1 #define REACHED_FINAL_STATE 2 enum DFA_STATES{q0,q1}; enum input{a,b}; int Accepted_states[FINAL_STATES]={q1}; char alphabet[ALPHABET_CHARCTERS]={'a','b'}; int Transition_Table[TOTAL_STATES][ALPHABET_CHARCTERS]; int Current_state=q0; void DefineDFA() { Transition_Table[q0][a] = q1; ...

Sunday, January 11

INTERNET SECURITY : Networking Lecture Notes

TOPIC: INTERNET SECURITY What is IPSec? IPSecurity (IPSec) is a collection of protocols designed to provide security at the network layer. Transport mode:  The IPSec header and trailer are added to the information  corning from the transport layer. The IP header is added later. Tunnel mode: It takes an IP packet, including the header, applies IPSec security methods to the entire packet, and then adds a new IP header . What are the protocols associated with IPSec? Authentication Header (AH): provides source authentication and data integrity. The protocol uses a hash function and a symmetric key to create a message digest; Encapsulating...
Page 1 of 3012345Next