Showing posts with label program. Show all posts
Showing posts with label program. Show all posts

Wednesday, August 15, 2007

Experiments/Program Codes - Final Year Computer Engineering ( 8th Sem )

This section contains some of my programs that I had written during my final year in computer engineering. The program codes are absolutely free and can be copied and redistributed by anyone. I hope this section proves to be helpful for the B.E. Computer Engineering students.

Huffman Code

Aim: To implement Huffman Code.

Programming Language used: C++

Compiler required: Turbo C/C++

Written during: Final Year of Engineering (2007)

Subject: Advanced Data Structure and Algorithms

Download Code

RSA Algorithm

Aim: To implement RSA Algorithm.

Programming Language used: C++

Compiler required: Turbo C/C++

Written during: Final Year of Engineering (2007)

Subject: Advanced Data Structure and Algorithms

Download Code

Parallel Tournament

Aim: To implement parallel tournament method to find the maximum number.

Programming Language used: C++

Compiler required: Turbo C/C++

Written during: Final Year of Engineering (2007)

Subject: Advanced Data Structure and Algorithms

Download Code

Caesar Cipher

Aim: To implement Caesar Cipher method.

Programming Language used: C++

Compiler required: GCC/G++

Written during: Final Year of Engineering (2007)

Subject: Cryptography and Network Security

Download Code

Hill Cipher

Aim: To implement Hill Cipher method.

Programming Language used: C++

Compiler required: GCC/G++

Written during: Final Year of Engineering (2007)

Subject: Cryptography and Network Security

Download Code

Diffie Hellman

Aim: To implement Diffie Hellman method to generate the secret key.

Programming Language used: C++

Compiler required: Turbo C/C++

Written during: Final Year of Engineering (2007)

Subject: Cryptography and Network Security

Download Code

Experiments/Program Codes - Final Year Computer Engineering ( 7th Sem )

This section contains some of my programs that I had written during my final year in computer engineering. The program codes are absolutely free and can be copied and redistributed by anyone. I hope this section proves to be helpful for the B.E. Computer Engineering students.

Single Deletion Error Detection and Correction

Aim: To detect and correct single deletion error in the given Assembly Language Program.

Programming Language used: C++

Compiler required: GCC/G++

Written during: Final Year of Engineering (2006)

Subject: Language Translators

Input file: /root/lt/1_sde/alp.txt

START
MRV AREG TEN
MOVM AREG TOTAL
MOVR BREG TWO
MOV BREG EVEN
MOV BREG ZERO
MOVM BREG SUM
MOVR BREG SUM
AD BREG EVEN
MVM BREG SUM
MOR CREG EVEN
AD CREG TWO
MOVM CREG EVEN
MOVR DREG TOTAL
DV DREG ONE
MOVM DREG TOTAL
COP DREG ONE
BC GT BACK
MOR BREG SUM
MUL BREG SUM
MOVM BREG SUM
WITE SUM
STOP
TEN DC '10'
ZERO DC '0'
EVEN DS 2
SUM DS 2
TOTAL DS 2
TWO DC '2'

END

Download Code

Left Recursion Removal

Aim: To read a set of production rules in a context free grammer and to identify and remove left recursions.

Programming Language used: C++

Compiler required: GCC/G++

Written during: Final Year of Engineering (2006)

Subject: Language Translators

Download Code

LEX Specification Program 1

Aim: Write a LEX Specification Program to produce the statistics like number of statements, characters, words, special characters, percentage of vowels and percentage of delimiters.

Written during: Final Year of Engineering (2006)

Subject: Language Translators

Download Code

LEX Specification Program 2

Aim: Write a LEX Specification Program to reverse the given code sample.

Written during: Final Year of Engineering (2006)

Subject: Language Translators

Download Code

Parsing using Predictive Parsing Table

Aim: To parse a string using predictive parsing table.

Programming Language used: C++

Compiler required: GCC/G++

Written during: Final Year of Engineering (2006)

Subject: Language Translators

Download Code

Basic Blocks in a Qquadruple

Aim: To identify the basic blocks in the given quadruple.

Programming Language used: C++

Compiler required: GCC/G++

Written during: Final Year of Engineering (2006)

Subject: Language Translators

Input file: /root/lt/6_quad/input.txt

01: location=-1
02: i=0
03: if(i<100)>
04: goto 13
05: t1=4*i
06: t2=A[t1]
07: if(t2=x) goto 09
08: goto 10
09: location=i
10: t3=i+1
11: i=t3
12: goto 03

13: -

Download Code

Domain Name Server

Aim: To implement Domain Name Server.

Programming Language used: Java

Written during: Final Year of Engineering (2006)

Subject: Distributed Operating System

Download Code

Single Client Single Sever

Aim: To implement Single Client and Single Sever.

Programming Language used: Java

Written during: Final Year of Engineering (2006)

Subject: Distributed Operating System

Download Code

Remote Method Invocation

Aim: To implement Remote Invocation Method.

Programming Language used: Java

Written during: Final Year of Engineering (2006)

Subject: Distributed Operating System

Download Code

Berkeley’s Algorithm

Aim: To implement Berkeley’s Algorithm.

Programming Language used: C++

Compiler required: Turbo C/C++

Written during: Final Year of Engineering (2006)

Subject: Distributed Operating System

Download Code

Experiments/Program Codes - Third Year Computer Engineering ( 6th Sem )

This section contains some of my programs that I had written during my third year in computer engineering. The program codes are absolutely free and can be copied and redistributed by anyone. I hope this section proves to be helpful for the T.Y. Computer Engineering students.

DDA Algorithm

Aim: Generation of a triangle using DDA algorithm.

Programming Language used: C++

Compiler required: Turbo C/C++

Written during: Third Year of Engineering (2006)

Subject: Computer Graphics

Download Code

Bresenham’s Algorithm

Aim: To implement Bresenham's algorithm.

Programming Language used: C++

Compiler required: Turbo C/C++

Written during: Third Year of Engineering (2006)

Subject: Computer Graphics

Download Code

Midpoint Circle Algorithm

Aim: To generate a circle using the midpoint circle algorithm.

Programming Language used: C

Compiler required: Turbo C/C++

Written during: Third Year of Engineering (2006)

Subject: Computer Graphics

Download Code

Midpoint Ellipse Algorithm

Aim: To draw an ellipse using the midpoint-ellipse algorithm.

Programming Language used: C

Compiler required: Turbo C/C++

Written during: Third Year of Engineering (2006)

Subject: Computer Graphics

Download Code

Boundary Fill Algorithm

Aim: To implement boundary fill algorithm to fill a polygon.

Programming Language used: C++

Compiler required: Turbo C/C++

Written during: Third Year of Engineering (2006)

Subject: Computer Graphics

Download Code

Two Dimensional Transformations

Aim: To demonstrate the various two-dimensional transformations.

Programming Language used: C

Compiler required: Turbo C/C++

Written during: Third Year of Engineering (2006)

Subject: Computer Graphics

Download Code

Cohen-Sutherland Two-Dimensional Line Clipping Algorithm

Aim: To implement the Cohen-Sutherland Two-Dimensional Line Clipping Algorithm.

Programming Language used: C

Compiler required: Turbo C/C++

Written during: Third Year of Engineering (2006)

Subject: Computer Graphics

Download Code

Sutherland-Hodgeman 2-D Polygon Clipping Algorithm

Aim: To implement the Cohen-Sutherland Two-Dimensional Line Clipping Algorithm.

Programming Language used: C

Compiler required: Turbo C/C++

Written during: Third Year of Engineering (2006)

Subject: Computer Graphics

Download Code

Bezier Curves

Aim: To generate bezier curves using input control points.

Programming Language used: C

Compiler required: Turbo C/C++

Written during: Third Year of Engineering (2006)

Subject: Computer Graphics

Download Code

Bouncing Ball Animation

Aim: To create an animation showing a bouncing ball.

Programming Language used: C++

Compiler required: Turbo C/C++

Written during: Third Year of Engineering (2006)

Subject: Computer Graphics

Download Code

KnapSack

Aim: To find optimal solution using Knapsack method.

Programming Language used: C++

Compiler required: GCC

Written during: Third Year of Engineering (2006)

Subject: Operation Research

Download Code

Encoding Techniques

Aim: To achieve all eight encoding techniques:

1) Nonreturn to Zero-Level (NRZ-L)

2) Nonreturn to Zero Inverted (NRZI)

3) Bipolar-AMI

4) Pseudoternary

5) Manchester

6) Differential Manchester

7) B8ZS

8) HDB3

Programming Language used: C++

Compiler required: Turbo C/C++

Written during: Third Year of Engineering (2006)

Subject: Computer Networks - I

Download Code