Spring 2025
Course Name: Data Structure and Algorithm
Lab 1: List
Prepared By: Hikmat Shehadeh
Objective:
• Implement Array List
Task 1: List Implementation
Implement a list data structure from scratch. Your list should support the following operations:
• Insertion: Add an element to the list at a specified index.
• Deletion: Remove an element from the list at a specified index.
• Access: Get the element at a specified index.
• Search: Check if an element exists in the list.
• Size: Get the number of elements in the list.
• Print: Print all the elements in the list.
Task 2: Time Complexity
• Calculate the time complexity for each method in Array List ADT.
End of Lab