<< Prev Showing: 1-5 of 353 Next >>
· 1-5 · 6-10 · 11-15 · 16-20 · 21-25 · 26-30 · 31-35 · 36-40 · 41-45 · 46-50 · 51-55 ·Using Big O notation for proofs.
Use only the definition of O(f(n)) to prove that the following statements are true: 1. (6n^3*log n + 1)/2n +1000 = O(1) 2. nlog n + n^3/2 = O(n^3/2) Please view the attachment below for the full question.
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
1650
OTA ID:
102772
Constructing an optimal Huffman code and tree.
Suppose characters a, b, c, d, e, f, g, h, i, j, k have probabilities 0.01, 0.03, 0.03, 0.05, 0.05, 0.07, 0.09, 0.12, 0.13, 0.20, 0.22, respectively. Construct an optimal Huffman code and draw the Huffman tree. Use the following rules: a. Left: 0, right: 1 b. For identical probabilities, group them from the left to right. What is the average code length?
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
1651
OTA ID:
102772
Give an example of a binary search tree which is a complete tree. Can it be done for an arbitrary number of nodes? Prove your answer.
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
1652
OTA ID:
102772
Writing a linear-time boolean function for a HEAP structure.
Write a linear-time Boolean function HEAP(T:BINARY_TREE) which returns TRUE is T is a heap, i.e., it is partially ordered. Assume that T is represented using pointers to left and right children. Prove that the time is really linear.
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
1653
OTA ID:
102772
Showing how AVL trees are formed. Attachments in Word.
AVL trees are a good implementation of binary search trees. Show (step by step) the AVL trees formed by inserting the numbers 3, 11, 2, 9, 8, 12, 10, 5, 4, 7, 6, 1, 13.
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
1654
OTA ID:
102772
<< Prev Showing: 1-5 of 353 Next >>
· 1-5 · 6-10 · 11-15 · 16-20 · 21-25 · 26-30 · 31-35 · 36-40 · 41-45 · 46-50 · 51-55 · 56-60 · 61-65 · 66-70 · 71-75 · 76-80 · 81-85 · 86-90 · 91-95 · 96-100 · 101-105 · 106-110 · 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 · 146-150 · 151-155 · 156-160 · 161-165 · 166-170 · 171-175 · 176-180 · 181-185 · 186-190 · 191-195 · 196-200 · 201-205 · 206-210 · 211-215 · 216-220 · 221-225 · 226-230 · 231-235 · 236-240 · 241-245 · 246-250 · 251-255 · 256-260 · 261-265 · 266-270 · 271-275 · 276-280 · 281-285 · 286-290 · 291-295 · 296-300 · 301-305 · 306-310 · 311-315 · 316-320 · 321-325 · 326-330 · 331-335 · 336-340 · 341-345 · 346-350 · 351-353 ·Page generated in 0.0975 seconds