18csl38 - Data Structrue Lab
18csl38 - Data Structrue Lab
0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 1 / 24
Copyright ©2017. cAAS. All rights reserved.
Table of Contents
17CSL38: Data Structure Laboratory..............................................................................................2
A. LABORATORY INFORMATION............................................................................................................................................. 2
1. Lab Overview..................................................................................................................................................................................................... 2
2. Lab Content........................................................................................................................................................................................................ 2
3. Lab Material........................................................................................................................................................................................................ 4
4. Lab Prerequisites:........................................................................................................................................................................................... 4
5. General Instructions..................................................................................................................................................................................... 4
6. Lab Specific Instructions........................................................................................................................................................................... 4
B. OBE PARAMETERS....................................................................................................................................................................... 5
1. Lab / Course Outcomes............................................................................................................................................................................ 5
2. Lab Applications.............................................................................................................................................................................................. 5
3. Articulation Matrix.......................................................................................................................................................................................... 6
4. Mapping Justification................................................................................................................................................................................... 7
5. Curricular Gap and Content.................................................................................................................................................................... 7
6. Content Beyond Syllabus........................................................................................................................................................................ 7
C. COURSE ASSESSMENT............................................................................................................................................................ 8
1. Course Coverage............................................................................................................................................................................................ 8
2. Continuous Internal Assessment (CIA)........................................................................................................................................... 8
D. EXPERIMENTS................................................................................................................................................................................. 9
Experiment 01 : Structure of C program............................................................................................................................................. 9
Experiment 02 : Keywords and identifiers...................................................................................................................................... 10
Experiment 03 : ………........................................................................................................................................................................................... 10
Experiment 04 : ……….......................................................................................................................................................................................... 10
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 2 / 24
Copyright ©2017. cAAS. All rights reserved.
A. LABORATORY INFORMATION
1. Lab Overview
Degree: B.Tech Program: CS
Year / Semester : 2/ 3 Academic Year: 2018-19
Course Title: Design and Analysis of Algorithms Lab Course Code: 18CSL38
Credit / L-T-P: 2/ 0-0-2 SEE Duration: 180 Minutes
Total Contact Hours: 40Hrs SEE Marks: 60 Marks
CIA Marks: 40 Assignment
Course Plan Author: Akshatha Kamath/Sowmya C v Sign Dt :
Checked By: Sign Dt :
2. Lab Content
Unit Title of the Experiments Lab Concept Blooms
Hours Level
1 Design, Develop and Implement a menu driven Programin C for Data L4
the following Array operations Manipula Analyze
a.Creating an Array of NInteger Elements tion
b.Display of Array Elements with Suitable Headings
c.Inserting an Element (ELEM) at a given valid Position (POS)
d.Deleting an Element at a given valid Position(POS)
e.Exit.
Support the program with functions for each of the above
operations
2 Design, Develop and Implement a Program in C for the following Data L4
operations on Strings Manipula
a.Read a main String (STR), a Pattern String (PAT) and a Replace tion
String (REP)
b.Perform Pattern Matching Operation: Find and Replace all
occurrences of PAT in STR with REP if PAT exists in STR. Report
suitable messages in case PAT does not exist in STR
Support the program with functions for each of the above
operations. Don't use Built-in functions.
3 Design, Develop and Implement a menu driven Programin C for Stack L4
the following operations on STACK of Integers (Array Operatio
Implementation of Stack with maximum size MAX) ns
a.Push an Element on to Stack
b.Pop an Element from Stack
c.Demonstrate how Stack can be used to check Palindrome
d.Demonstrate Overflow and Underflow situations on Stack
e.Display the status of Stack
f.Exit
Support the program with appropriate functions for each of the
above operations
4 Design, Develop and Implement a Program in C for converting an Stack L4
Infix Expression to Postfix Expression. Program should support for Operatio
both parenthesized and free parenthesized expressions with the ns
operators: +, -, *, /, %(Remainder), ^(Power) and
alphanumericoperands.
5 Design, Develop and Implement a Program in C for the following Stack L4
Stack Applications Operatio
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 3 / 24
Copyright ©2017. cAAS. All rights reserved.
a.Evaluation of Suffix expressionwith single digit operands ns
andoperators: +, -, *, /, %, ^
b.Solving Tower of Hanoi problem with n disks
6 Design, Develop and Implement a menu driven Program in C for Queue L4
the following operations on Circular QUEUE of Characters Features
(ArrayImplementation of Queue with maximum size MAX)
a.Insert an Element on to Circular QUEUE
b.Delete an Element from Circular QUEUE
c.Demonstrate Overflow and Underflow situations on Circular
QUEUE
d.Display the status of Circular QUEUE
e.Exit
Support the program with appropriate functions for each of the
above operations
7 Design, Develop and Implement a menu driven Program in C for Linked L4
the following operations on Singly Linked List (SLL) of Student List
Data with the fields: USN, Name, Branch, Sem, PhNo Characte
a.Create a SLL of NStudents Data by using front insertion. ristics
b.Display the status of SLLand count the number of nodes in it
c.Perform Insertion / Deletion at End of SLL
d.Perform Insertion / Deletion at Front of SLL(Demonstration of
stack)
e.Exit
8 Design, Develop and Implement a menu driven Program in C for Linked L4
the following operations on Doubly Linked List (DLL) of Employee List
Data with the fields: SSN, Name, Dept, Designation, Sal, PhNo Characte
a.Create a DLL of NEmployees Data by using end insertion. ristics
b.Display the status of DLL and count the number of nodes in it
c.Perform Insertion and Deletion at End of DLL
d.Perform Insertion and Deletion at Front of DLL
e.Demonstrate how this DLLcan be used as Double Ended
Queue
f.Exit
9 Design, Develop and Implement a Program in C for the following Linked L4
operationson Singly Circular Linked List (SCLL) with header nodes List
a.Represent and Evaluate a Polynomial P(x,y,z) = 6x2y2z- Characte
4yz+3x3yz+2xy5z-2xyz3 ristics
b.Find the sum of two polynomials POLY1(x,y,z) and POLY2(x,y,z)
and store the result in POLYSUM(x,y,z) Support the program with
appropriate functions for each of the above operations.
10 Design, Develop and Implement a menu driven Programin C for Traversal L4
the following operations on Binary Search Tree (BST) of Integers Method
a. Create a BST of N Integers: 6, 9, 5, 2, 8, 15, 24, 14, 7, 8, 5, 2
b. Traverse the BST in Inorder, Preorder and Post Order
c. Search the BST for a given element (KEY) and report the
appropriate message
e. Exit
11 Design, Develop and Implement a Program in C for the following Traversal L4
operations onGraph(G) of Cities Method
a.Create a Graph of N cities using Adjacency Matrix.
b.Print all the nodes reachable from a given starting node in a
digraph using DFS/BFS method
12 Given a File of N employee records with a set K of Keys(4- digit) File L4
which uniquely determine the records in file F. Assume that file Fis Organiza
maintained in memory by a Hash Table(HT) of m memory tion
locations with Las the set of memory addresses (2- digit) of
locations in HT. Let the keys in K and addresses in L are Integers.
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 4 / 24
Copyright ©2017. cAAS. All rights reserved.
Design and develop a Program in C that uses Hash function H: K
→→→→L as H(K)=Kmod m (remainder method), and implement
hashing technique to map a given key K to the address space
L.Resolve the collision (if any) using linear probing.
3. Lab Material
Unit Details Available
1 Text books
Higher Engineering Mathematics, B S Grewal, Khanna Publishers, Latest In Lib
edition, 2015. Title, Author, Publisher, Edition, Publication Year
2 Reference books
1. Higher Engineering Mathematics, B V Ramana, Tata Mc. Graw Hill, 3 Ed., In dept
2014
4. Lab Prerequisites:
- - Base Course: - -
SNo Course Course Name Topic / Description Sem Remarks
Code
1 C Programing Knowledge on Data Structures 2
Note: If prerequisites are not taught earlier, GAP in curriculum needs to be addressed. Include in
Remarks and implement in B.5.
5. General Instructions
SNo Instructions Remarks
1 Observation book and Lab record are compulsory.
2 Students should report to the concerned lab as per the time table.
3 After completion of the program, certification of the concerned staff in-
charge in the observation book is necessary.
4 Student should bring a notebook of 100 pages and should enter the
readings /observations into the notebook while performing the experiment.
5 The record of observations along with the detailed experimental procedure
of the experiment in the Immediate last session should be submitted and
certified staff member in-charge.
6 Should attempt all problems / assignments given in the list session wise.
7 It is responsibility to create a separate directory to store all the programs, so
that nobody else can read or copy.
8 When the experiment is completed, should disconnect the setup made by
them, and should return all the components/instruments taken for the
purpose.
9 Any damage of the equipment or burn-out components will be viewed
seriously either by putting penalty or by dismissing the total group of
students from the lab for the semester/year
10 Completed lab assignments should be submitted in the form of a Lab
Record in which you have to write the algorithm, program code along with
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 5 / 24
Copyright ©2017. cAAS. All rights reserved.
comments and output for various inputs given
B. OBE PARAMETERS
1. Lab / Course Outcomes
# COs Teach. Concept Instr Assessment Blooms’
Hours Method Method Level
1 Choose the Data manipulation functions 6 Data Demons Labs L5
for array and strings using memory Manipulation tration
allocation methods
2 Demonstration of stack operations on the 12 Stack Demons Labs L5
expression using stacks Operations tration
3 Determine the queue features on the 3 Queue Demons Labs L5
problem using queue methods Features tration
4 Compare linked list classification using 9 Linked List Demons Labs L5
linked list method Characteristic tration
s
5 Decide the hierarchical organization of 4 Hierarchical Demons Labs L5
data using binary search tree method Organization tration
6 Explain the traversal method on node and 3 Traversal Demons Labs L5
edges using graph operation Method tration
7 Importance of file organization on files 3 File Demons Labs L5
and records using hash function. Organization tration
- Total 40 - - - -
Note: Identify a max of 2 Concepts per unit. Write 1 CO per concept.
2. Lab Applications
SNo Application Area CO Level
1 Analyze the memory allocation method CO1 L5
2 Code and debug the operations of stack CO2 L5
3 Demonstrate the working of the data structure in queues CO3 L5
4 Evaluate the operations of linked list CO4 L5
5 Analyze hierarchical linear and non linear data-structures CO5 L5
6 Implement the traversal methods CO6 L5
7 Evaluate the searching & sorting method by organizing the file structures CO7 L5
Note: Write 1 or 2 applications per CO.
3. Articulation Matrix
(CO – PO MAPPING)
- Course Outcomes Program Outcomes
# COs PO1 PO2 PO PO PO PO PO PO PO PO1 PO1 PO1 Level
3 4 5 6 7 8 9 0 1 2
18CSL38.1 Choose the Data manipulation 2 - - - - - - - - - - - L5
functions for array and strings
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 6 / 24
Copyright ©2017. cAAS. All rights reserved.
using memory allocation methods
18CSL38.2 Demonstration of stack operations - - 3 2 - - - - - - - - L5
on the expression using stacks
18CSL38.3 Determine the queue features on 2 - 3 - - - - - - - - - L5
the problem using queue
methods
18CSL38.4 Compare linked list classification 1 - 2 3 - - - - - - - - L5
using linked list method
18CSL38.5 Decide the hierarchical 1 2 2 1 - - - - - - - - L5
organization of data using binary
search tree method
18CSL38.6 Explain the traversal method on - - 3 2 - - - - - - - - L5
node and edges using graph
operation
18CSL38.7 Importance of file organization on - - 3 2 - - - - - - - - L5
files and records using hash
function.
18CSL38 Average 2 2 3 2
Note: Mention the mapping strength as 1, 2, or 3
4. Mapping Justification
Mapping Mapping Justification
Level
CO1 PO1 L5
The knowledge of structure and abstract data type can be applied to
solve complex problems.
CO2 PO2 L5 These fundamental concepts of CS can be applied to solve complex
problems
CO2 PO3 L5 Efficient algorithms can be designed based on their time complexity.
CO3 PO2 L5 These fundamental concepts of CS can be applied to solve complex
problems
CO4 PO4 L5 Analysis of algorithms helps to select suitable algorithms and reach valid
conclusions.
CO5 PO1 L5 The knowledge of structure and abstract data type can be applied to
solve complex problems.
CO6 PO5 L5 Complexity analysis can be applied in research and other innovative
areas.
CO7 PO3 L5 The knowledge about the various data structures can be applied to solve
complex engineering problems.
CO8 PO4 L5 This knowledge helps in suitable representations and thereby
interpretation of data can be done efficiently
CO9 PO2 L5 These fundamental concepts of CS can be applied to solve complex
problems
CO10 PO5 L5 Complexity analysis can be applied in research and other innovative
areas.
CO11 PO3 L5 The knowledge about the various data structures can be applied to solve
complex engineering problems.
CO12 PO5 L5 Complexity analysis can be applied in research and other innovative
areas.
Note: Write justification for each CO-PO mapping.
Note: Write Gap topics from A.4 and add others also.
C. COURSE ASSESSMENT
1. Course Coverage
Unit Title Teachi No. of question in Exam CO Levels
ng CIA-1 CIA-2 CIA-3 Asg-1 Asg-2Asg-3 SEE
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 8 / 24
Copyright ©2017. cAAS. All rights reserved.
Hours
1 Arrays 03 1 - 1 - - - 1 CO1 L5
2 Strings 03 1 - 1 - - - 1 CO1 L5
3 Stack 03 1 - 1 - - - 1 CO2 L5
4 Conversion Of Expressions 03 1 - 1 - - - 1 CO2 L5
5a Evaluation Of Expressions 02 1 - 1 - - - 1 CO2 L5
5b Tower of Hanoi 01 1 - 1 - - - 1 CO2 L5
6 Queues 03 1 - 1 - - - 1 CO3 L5
7 Singly Linked List 03 - 1 1 - - - 1 CO4 L5
8 Doubly Linked List 03 - 1 1 - - - 1 CO4 L5
9 Circular Linked List 03 - 1 1 - - - 1 CO4 L5
10 Binary Search Tree 03 - 1 1 - - - 1 CO5 L5
11 Depth First Search 03 - 1 1 - - - 1 CO6 L5
12 Hash Functions 03 - 1 1 - - - 1 CO7 L5
- Total 36 6 6 12 0 0 0 12 - -
Note: Write CO based on the theory course.
Assignment - 1 00 - L5
Assignment - 2 00 - L5
Assignment - 3 00 - L5
Seminar - 1 00 - L5
Seminar - 2 00 - L5
Seminar - 3 00 - L5
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 9 / 24
Copyright ©2017. cAAS. All rights reserved.
D. EXPERIMENTS
Experiment 01 : Arrays
- Experiment No.: 1 Marks Date Date
Planned Conducted
1 Title Arrays
2 Course Outcomes Choose the Data manipulation functions for array and strings using memory
allocation methods
3 Aim Exercise on memory allocation
4 Material / Lab Manual
Equipment Required
5 Theory, Formula, Learn data structure classification for array with the memory allocation
Principle, Concept functions
6 Procedure, Program, step 1: start
Activity, Algorithm, step 2: write programming
Pseudo Code step 3: save the program
step 4: compile
step 5:if error then correct the errors
step 6:run
step 7:stop
7 Block, Circuit, Model -
Diagram, Reaction -
Equation, Expected -
Graph
8 Observation Table, SAMPLE OUTPUT:
Look-up Table, --------Menu-----------
Output 1.Create
2.Display
3.Insert
4.Delete
5.Exit
Enter your choice:
1
Enter the size of the array elements: 5
Enter the elements for the array:
10
20 30
40
SAMPLE OUTPUT:
--------Menu-----------
1.Create
2.Display
3.Insert
4.Delete
5.Exit
Enter your choice: 1
Enter the size of the array elements: 5
Enter the elements for the array:
10 20 30 40 50
9 Sample Calculations - Creating an array
- Displaying an array elements
- Inserting an element in to an array
- Deleting an array element
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 10 / 24
Copyright ©2017. cAAS. All rights reserved.
10 Graphs, Outputs Enter the elements for the array:
10 20 30 40 50
Experiment 02 : String
13 Remarks
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 11 / 24
Copyright ©2017. cAAS. All rights reserved.
14 Faculty Signature
with Date
Experiment 03 : Stack
13 Remarks
14 Faculty Signature
with Date
13 Remarks
14 Faculty Signature
with Date
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 14 / 24
Copyright ©2017. cAAS. All rights reserved.
Look-up Table, 3
Output Move disc 1 from A to C
Move disc 2 from A to B
Move disc 1 from C to B
Move disc 3 from A to C
Move disc 1 from B to A
Move disc 2 from B to C
Move disc 1 from A to C
Total Number of moves are: 7"
9 Sample 2n-1 where n I number of disk
Calculations
10 Graphs, Outputs Enter the number of discs:
3
Move disc 1 from A to C
Move disc 2 from A to B
Move disc 1 from C to B
Move disc 3 from A to C
Move disc 1 from B to A
Move disc 2 from B to C
Move disc 1 from A to C
Total Number of moves are: 7"
11 Results & Analysis
12 Application Areas Demonstrate the working of the Tower of Hanoi
13 Remarks
14 Faculty Signature
with Date
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 15 / 24
Copyright ©2017. cAAS. All rights reserved.
7 Block, Circuit,
Model Diagram,
Reaction Equation,
Expected Graph
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 16 / 24
Copyright ©2017. cAAS. All rights reserved.
7 Block, Circuit,
Model Diagram,
Reaction Equation,
Expected Graph
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 17 / 24
Copyright ©2017. cAAS. All rights reserved.
7 Block, Circuit,
Model Diagram,
Reaction Equation,
Expected Graph
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 18 / 24
Copyright ©2017. cAAS. All rights reserved.
Enter polynomial to evaluate:
Enter coeff: 6
Enter x, y, z powers (0-indiacate NO term: 2 2 1
If you wish to continue press 1 otherwise 0: 1
Enter coeff: -4
9 Sample P(x,y,z) = 6x2y2z-4yz5+3x3yz+2xy5z-2xyz3
Calculations
10 Graphs, Outputs 1. Evaluate polynomial P(x,y,z) = 6x2y2z-4yz5+3x3yz+2xy5z-2xyz3
2. Add two polynomials
3. Exit
Enter your choice: 1
Enter polynomial to evaluate:
Enter coeff: 6
Enter x, y, z powers (0-indiacate NO term: 2 2 1
If you wish to continue press 1 otherwise 0: 1
Enter coeff: -4
11 Results & Analysis
12 Application Areas Evaluate the operations of linked list
13 Remarks
14 Faculty Signature
with Date
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 20 / 24
Copyright ©2017. cAAS. All rights reserved.
13 Remarks
14 Faculty Signature
with Date
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 21 / 24
Copyright ©2017. cAAS. All rights reserved.
Enter your choice: 2
3.Exit
Enter the source vertex to find other nodes reachable or not: 1
3
4
2
9 Sample Initially all vertices are unvisited. DFS starts in arbitrary vertex and runs as
Calculations follows:
Mark vertex u as visited.
For each edge (u, v), where u is unvisited , run depth-first search for u
recursively.
Mark vertex u as DFS has finished processing the vertex. and backtrack to
the parent.
10 Graphs, Outputs 1. Create Graph
2.BFS
Enter your choice: 1
3.Exit
Enter the number of vertices of the digraph: 4
Enter the adjacency matrix of the graph:
0
0
1
1
0
0
0
0
0
1
0
0
0
1
0
0
1. Create Graph
2.BFS
Enter your choice: 2
3.Exit
Enter the source vertex to find other nodes reachable or not: 1
3
4
2
11 Results & Analysis
12 Application Areas Implement the traversal methods
13 Remarks
14 Faculty Signature
with Date
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 22 / 24
Copyright ©2017. cAAS. All rights reserved.
3 Aim Organizing the employee records in a hash table by setting Keys
4 Material / Lab Manual
Equipment
Required
5 Theory, Formula, Hash Table is a data structure which store data in associative manner. In hash
Principle, Concept table, data is stored in array format where each data values has its own unique
index value.
6 Procedure, Step 1: Start.
Program, Activity, Step 2: Given a File of N employee records with a set K of Keys (4-digit) which
Algorithm, Pseudo uniquely determine
Code the records in file F.
Step 3: Assume that file F is maintained in memory by a Hash Table(HT) of m
memory locations
with L as the set of memory addresses (2-digit) of locations in HT.
Step 3: Let the keys in K and addresses in L are Integers
Step 4: Hash function H: K ®L as H(K)=K mod m (remainder method)
Step 5: Hashing as to map a given key K to the address space L, Resolve the
collision (if any) is
using linear probing.
Step6: Stop .
7 Block, Circuit,
Model Diagram,
Reaction Equation,
Expected Graph
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v
Logo SKIT Teaching Process Rev No.: 1.0
Doc Code: SKIT.Ph5b1.F03 Date: 03-08-2019
Title: Course Lab Manual Page: 23 / 24
Copyright ©2017. cAAS. All rights reserved.
0
6
0
7
0
8
0
9
0
EmpName
Anand
Kumar
9 Sample (1,20) (2,70) (42,80) (4,25) (12,44) (14,32) (17,11) (13,78) (37,98)
Calculations S.n. Key Hash Array Index
1 1 1 % 20 = 1 1
2 2 2 % 20 = 2 2
3 42 42 % 20 = 2 2
13 Remarks
14 Faculty Signature
with Date
cse
Prepared by Checked by Approved
Akshatha Kamatha/Sowmya C v