• Non ci sono risultati.

Algorithm Engineering 19 December 2018

N/A
N/A
Protected

Academic year: 2021

Condividi "Algorithm Engineering 19 December 2018"

Copied!
1
0
0

Testo completo

(1)

Algorithm Engineering 19 December 2018

Exercise [rank 5+5+5]

 Prove that if we insert n keys in a hash table of size m = n2 via a universal hash function the average number of collisions is less than ½.

 Prove that the height of the skip list is O(log n) with high probability

 Describe the gamma and delta codes of an integer x > 0.

Exercise [rank 5]

Given the text T = ccab, compress it via Arithmetic coding, using as probabilities of the symbols their frequency of occurrence in T.

Exercise [rank 5]

Construct a perfect hash table for the set of keys {6, 4, 5, 8, 7, 14, 11, 16, 18}, by assuming a first-level table of size 5 and by defining hash functions of the form h(x) = a * x mod q, where q is a properly chosen number (possibly not prime, in order to manage the functions of the second level).

Exercise [rank 5]

Build a Patricia trie on the set of strings S={aba, abcaba, abcad, bd} and show how it is executed a lexicographic search for the string P1 = acdac, and P2=aab

Riferimenti

Documenti correlati

In tali studi sono stati analizzati i vantaggi e le problematiche legate alla manipolazione delle pelli e proposto un nuovo sistema d’accatastamento automatico che risolva il

 Show and prove the bound on the length of the compressed file produced by Arithmetic coding as a function of the number n of compressed characters and

Even if the Patricia Trie strips out some information from the Compacted Trie, it is still able to support the search for the lexicographic position of a pattern P among a

Assuming that S is on disk and the Patricia trie is in internal memory, with leaf pointers to strings of S, show the I/O-complexity of prefix- searching for a pattern P[1,p]c. [rank

One can easily verify that every element of ~ is a right tail of 5 preordered withrespect to relation defined 1n (j).. A CHARACTERIZATION DF V-PRIME ANO 5TRONGLY V-PRIME ELHlrtHS OF

Answer: As a basis of Im A, take the first, fourth and fifth columns, so that A has rank 3. Find a basis of the kernel of A and show that it really is a basis... Does the union of

If S is not a linearly independent set of vectors, remove as many vectors as necessary to find a basis of its linear span and write the remaining vectors in S as a linear combination

We show that segregation according to information preferences leads to a seg- regation of information: If groups do not interact with each other, within each group, only the