

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: Exam; Class: Data Structures; Subject: Computer Science; University: University of Illinois - Urbana-Champaign; Term: Fall 2007;
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Friday, November 2
In an array-based implementation of a Heap, the left-child of the right-child of the node at index i, if it exists, can be found at what array location?
Suppose you are asked to implement a heap class member function called find whose purpose is to return the location of a particular key in the heap. Which of the following best reflects the worst case running time of the function?
True or false: The Huffman Encoding algorithm employs a Priority Queue of Binary Search Trees.
Given this set of symbols and frequencies: a 1k d 3k e 4.5k n 5k t 6k which of the following is a valid Huffman encoding of the message “attend”?
A hash function is a reasonable alternative to which of the following data structures?