Downloads

 

I like programming in C, C++ and sometimes Perl. Here are a few programs and executables, written long back when I was an under grad.

I use the Turbo C++ 3.0 compiler, therefore I am not sure whether the programs run the same way on the other platforms and on different compilers. Also most of the programs have .cpp extension even though they are C.

Implementation of some Algorithms from the book: Introduction to Algorithms - Thomas H Cormen et al.

FA_match.zip A finite automaton pattern matcher (C).
RK_MATCH.zip Rabin Karp matcher (C).
B_TREE.zip B-Tree (C++) for character keys and a pseudocode for the deletion (.doc).

Perl programs

remcc.pl To remove all comments from a C/C++ program.
rempc.pl To remove perl comments.
cpp2cc.pl To convert all C++ style comments to C style comments.
lineNum.pl Adds line numbers as comment at the start of every line for C/C++ programs.

Some DOS executables 

LS.zip A simple version of the Unix ls command. Shows file names in color, supports Long File Names.
CAL.zip And the cal command.
COMBIN1.zip Generates n! permutations of an n character string.
SUBSETS2.zip Generates 2n subsets of a set.
CMATRIX.zip My one and only graphics program (requires egavga.bgi file) to print characters as in the movie:
 'The Matrix'

Some more programs

SENTENCE.zip Recursively reverse a sentence by words.
PUZZLE_8.zip The 8 Puzzle in C.
PALLINDR.zip To check if a number is a palindrome, if not reverse and add until a palindrome.
SCROLLER.zip A vertical scroller class.
GETKEY.zip To read keys from keyboard.

Programs written as a part of hands-on exercise in the Computer Networks course

leaky_1.zip Leaky bucket : ASCII display and graph.
DijkstraKruskal.zip Dijkstra's and Kruskal's algorithm : The input graph can be drawn with mouse.
To read keys from keyboard.

A Simple illustration of writing FSMs in C

FSM_odd1evn0.zip FSM to accept only odd number of 1's and even number of 0's

Please note, if you happen to download these programs, please don't comment on the structure or the implementation because they were written long back and I haven't changed anything.

_________________________________________________________________________

[Homepage | Photos | ACSH | M.Tech Stuff | FAQs]

1
Hosted by www.Geocities.ws

1