UGRD ITE6201 2016S Data Structure Algorithm
UGRD ITE6201 2016S Data Structure Algorithm
UGRD ITE6201 2016S Data Structure Algorithm
Fill in the following table, using Big-O notation to give the worst and average-case times for each of
the stack methods for a stack of size N.
= End points of e
This is a binary tree whose every node has either zero or two children.
___________ sorting algorithm is frequently used when n is small, where n is the total number of
elements.
= Insertion
Which of the following is not the required condition for binary search algorithm?
= O(n)
Graph G is _____________ if for any pair u, v of nodes in G, there is a path from u to v or path from v to
u.
= Unliterally connected
The complexity of sorting algorithm measures the __________ as a function of the number n of items to
be shorter.
= running time
= Item is the last element in the array or item is not there at all
= Digraph
The rearranging of pairs of elements which are out of order, until no such pairs remain.
= Exchange
If the number of records to be sorted is small, then __________ sorting can be efficient.
= Selection
= Empty
= Selection sort
Every node N in a binary tree T except the root has a unique parent called the ________ of N.
= Predecessor
Trees are ________ if they are similar and have the same contents at corresponding nodes.
= copies
= Internal node
= quick sort
= binary search algorithm is not efficient when the data elements more than 1500
= Threaded trees
__________________ is putting an element in the appropriate place in a sorted list yields a larger sorted
order list.
= insertion
The rearranging of pairs of elements which are out of order, until no such pairs remain.
= Exchange
= Empty
=3
Which of the following sorting algorithm is of the divide and conquer type?
= Merge sort
= A tree graph
i. Internal sorting are applied when the entire collection if data to be sorted is small enough that the
sorting can take place within main memory.
ii. The time required to read or write is considered significant in evaluating the performance of internal
sorting.
= True, False
= no cycle graph