LABORATORY MANUAL
Electrical Engineering Department
Data Structures and Algorithms
Fall 2025
rd
3 Semester
Submitted by
___________|__________
Instructor
Engr. Ali Israr
Department of Electrical Engineering,
Faculty of Information & Communication Technology, BUITEMS, Quetta.
Session Fall/2024
1
LAB MANUAL Data Structures and Algorithms
CERTIFICATE
This is certified that Mr. _ _ _ _ _ _ bearing CMS ID # ________
Successfully completed the laboratory manual of Data Structures and
Algorithms’ in his/her 3rd semester of BS (Electrical Engineering), Batch
Fall-2024 under the supervision of his lab instructor Engr. Ali Israr.
Lab Manual Marks Instructor Signature
2
LAB MANUAL Data Structures and Algorithms
TABLE OF CONTENTS
Contents
TABLE OF CONTENTS..........................................................................................................................3
CLO’s PLO’s MAPPING.......................................................................................................................4
List of Experiments.............................................................................................................................5
LAB NO. 1 Week 1...................................................................................................................6
Lab outcomes:......................................................................................................................................6
Corresponding CLO and PLO:.........................................................................................................6
Tools:....................................................................................................................................................6
Theory:.................................................................................................................................................6
Rubrics......................................................................................................................................................9
3
LAB MANUAL Data Structures and Algorithms
CLO’s PLO’s MAPPING
Course Learning Outcomes (Laboratory)
Sr. Taxonomy
CLO Domain PLO
No Level
Set up computer programs and
PLO-5:
1 algorithms with precision, following Psychomotor P2
Tool Usage
defined instructions and best practices.
Demonstrate the performance of PLO-3:
2 various data structures algorithms to Psychomotor P4 Design/Development of
solve real world problems. Solutions
PLO-08:
Exhibit ability to work effectively as an
3 Affective A3 Individual and Collaborative
individual or in a team.
Team Work
4
LAB MANUAL Data Structures and Algorithms
List of Experiments
Sr.No CLO Experiments
1 1 Create an array list and execute a code that prompts the user to create an array
list.
2
3
4
5
6
7
8
9
10
11
12
13
14
5
LAB MANUAL Data Structures and Algorithms
LAB NO. 1 Week 1
Implementation of Array
Lab outcomes:
After completing this lab, students will be able to.
How to insert and print array elements.
Display Array Elements Using Loop.
Take Inputs from User and Store Them in an Array.
Corresponding CLO and PLO:
CLO-1, PLO-5 (Modern Tool Usage)
Tools:
Eclipse IDE
JDK
Dev C++
Theory:
The array is a basic abstract data type that holds an ordered collection of items accessible
by an integer index. These items can be anything from primitive types such as integers to
more complex types like instances of classes. Arrays have one property: they store and
retrieve items using an integer index. An item is stored in each index and can be retrieved at
a later time by specifying the same index. The way these indices work is specific to the
implementation, but you can usually just think of them as the slot number in the array that
the value occupies. Look at the image below:
6
LAB MANUAL Data Structures and Algorithms
Array:
Task: 1 “Code With Array”
#include <iostream>
Using namespace std;
Output:
7
LAB MANUAL Data Structures and Algorithms
Task 2 : “Enter Array Elements”
Output:
8
LAB MANUAL Data Structures and Algorithms
Rubrics
Absent Student is Student can Student has Student has Student
unable to understand followed constructed perfectly
follow the the provided instructions to the functional/ implemented a
provided laboratory construct the working working model/
instructions instructions fundamental schematic/ logic/ circuit/
properly. and familiar schematic/ model/ block block diagram/
The student can with the lab block diagram/ code and
name the environment diagram/ code, and successfully
Demonstration hardware or (Trainer/ code/ model have executed the
simulation software/ on the successfully lab objective in
platform, but IDE), but protoboard/ executed the Realtime or in a
unable to cannot trainer/ program/ run simulation
implement implement on simulation circuit on environment
anything the platform software. software and produced
practically or practically or platform the desired
on the software on the results
software
Category Ungraded Very Poor Poor Fair Good Excellent
Percentage [0] [1-20] [21-40] [41-60] [61-80] [81-100]
Marks 0.0 0.01 - 0.20 0.21 - 0.40 0.41 - 0.60 0.61 - 0.80 0.81 - 1.0
Date Total Marks Instructor’s Signature
Report not Plagiarized Requirements Observations Appropriate Correctly
submitted content are listed and are recorded computations drawn
presented or experimental along with or numerical conclusion with
Laboratory
incomplete procedure is detailed analysis is exact results
Reports
submission presented procedure performed and complete
report in all
respects
Category Ungraded Very Poor Poor Fair Good Excellent
Percentage [0] [1-20] [21-40] [41-60] [61-80] [81-100]
Marks 0.0 0.01 - 0.20 0.21 - 0.40 0.41 - 0.60 0.61 - 0.80 0.81 - 1.0
Date Total Marks Instructor’s Signature
No Unable to Limited Completes Provides solid Demonstrates
Contributio cooperate with individual some individual exceptional
n from the team members; contributions: individual work; actively individual
student shows minimal occasionally tasks; engages in initiative and
either understanding participates in participates in group tasks leadership;
Student
individually and group group and supports significantly
Contribution as
or in the engagement in discussion but activities with team efforts enhances group
an individual or
group. both individual lacks some effectively. performance
in group
and group effectiveness. contributions through active
tasks. though collaboration
inconsistently and
. contributions.
Category Ungraded Very Poor Poor Fair Good Excellent
Percentage [0] [20] [40] [60] [80] [100]
Marks 0.0 0.1 0.2 0.3 0.4 0.5
Date Total Marks Instructor’s Signature
9
LAB MANUAL Data Structures and Algorithms
10