

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Algorithms and Data Structures; Subject: Computer Science; University: University of Alabama - Birmingham; Term: Spring 2008;
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


February 7, 2008
(1) The time complexity of finding the maximum value in a single-linked list of integers sorted in ascending order. (2) The time complexity of finding the maximum value in a single-linked list of integers sorted in descending order. (3) The time complexity of finding the maximum value in a double-linked list of integers sorted in ascending order. (4) The time complexity of finding the maximum value in an unsorted double-linked list of integers. (5) The time complexity of removing the last element of a double-linked list without a tail pointer. (6) What is the worst case time complexity of searching for an item in a sorted array using binary search? (7) The time complexity of finding the minimum value is a complete binary minimum heap. (8) The time complexity of inserting an element to a heap tree with n nodes. (9) The time complexity of building a heap tree with n nodes by insertion method. (10) The time complexity of giving a key to find a value stored in the hash.
February 7, 2008
(1) What is (are) the possible value(s) for the root A? (2) What is (are) the value(s) for the leaves? (3) If a new node with value 54 is inserted, where the node will be placed? (4) What will you obtain if performing the following operations? a. root.getLeftNode().getLeftNode().getRightNode() b. root.getRightNode().getRightNode().getLeftNode()