• Non ci sono risultati.

Algorithm Engineering 17 december 2019 [FinalTerm]

N/A
N/A
Protected

Academic year: 2021

Condividi "Algorithm Engineering 17 december 2019 [FinalTerm]"

Copied!
1
0
0

Testo completo

(1)

Algorithm Engineering

17 december 2019 [FinalTerm]

Name: Surname: Matricola:

Exercise 1 [rank 3+5] Let us given the set of strings

S={ baci, baco, boss, buono, buu, costi, costola}

 Show the Front-coding compression of S

 Show the Locality-preserving front-coding compression of S, setting c=1 and counting (for simplicity) previous characters and digits for the

“backward copy-check” in the LPFC-algorithm

Exercise 2 [rank 4+4] Let us given the set of strings S={ aaabbb, aaabdb, abbbd, abbbe, abbc, abc}

 Describe a two-level index that uses in internal memory a Patricia trie on 2 strings

 Show how it is searched the string “aaabcb” in that 2-level index

Exercise 3 [rank 4+4] Given the undirected and weighted graph G={(A,B, 4), (A,F, 5), (A,E, 6), (B,C, 6), (B,F, 8), (C,D, 7), (C,F, 5), (D,F, 3), (D,E, 4)}.

 Compute the MST via the Kruskal’s algorithm

 Compute the MST via the Prim’s algorithm Show all steps of each algorithm.

Exercise 4 [rank 3+3] Answer the following questions

 Show and prove the optimal distribution for the gamma-code

 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 their entropy.

Riferimenti

Documenti correlati

Au total, les saints laïcs médiévaux originaires de Venise et vénérés dans cette ville sont peu nombreux – 5 au maximum avec Anna Michiel Giustiniani dont

La promozione della lettura e la facilitazione dell'accesso alla lettura stessa sono, in effetti, una delle risposte che i governi dovrebbero fornire alla crisi

More specifically we aimed to: (1) analyze the carabids community in the study area, (2) study the effects of some ecological variables (e.g. soil parameters and vegetation

SB in the literature, covering 4 fundamental meanings: the synthesis of artificial life (including the synthesis of analogs of living systems, such as physico-chemical

reduce the number of integration points required for the polyhedral quadrature

The distribution of simulation parameters in the area of the tested structure made it possible to partially optimize the load- bearing system of the trailer, due to the

The method of the Geomechanics of Highly Compressed Rock and Rock Massifs consists of the representation of hierarchical block geomedia by a system of non-Euclidian models and

Naturalmente anche questa discrepanza ha una sua rilevanza didattica, ma per il momento non è possibile tarare i sistemi di traduzione automatica verso il tedesco in base a