Correctness of Constructing Optimal Alphabetic Trees Revisited - PowerPoint PPT Presentation

About This Presentation
Title:

Correctness of Constructing Optimal Alphabetic Trees Revisited

Description:

Correctness of Constructing Optimal Alphabetic Trees Revisited. Marek ... General version of Garsia-Wachs (GW) algorithm. Proof of GW. Hu-Tacker (HT) algorithm ... – PowerPoint PPT presentation

Number of Views:59
Avg rating:3.0/5.0
Slides: 78
Provided by: abula5
Category:

less

Transcript and Presenter's Notes

Title: Correctness of Constructing Optimal Alphabetic Trees Revisited


1
Correctness of Constructing Optimal Alphabetic
Trees Revisited
Theoretical computer science 180 (1997) 309-324
  • Marek Karpinski,
  • Lawrence L. Larmore,
  • Wojciech Rytter

2
Outline
  • Definitions
  • General version of Garsia-Wachs (GW) algorithm
  • Proof of GW
  • Hu-Tacker (HT) algorithm
  • Proof of HT by similarity to GW

3
Definitions
Binary tree Every internal node has exactly two
sons
4
Definitions
5
The Move Operator
6
The Move Operator
7
The Move Operator
8
The Move Operator
9
Definitions
10
Theorem 1 (correctness of GW)
11
Garsia-Wachs Algorithm
12
Definitions
13
Theorem 2
14
Shift Operations
15
Shift Operations
16
LeftShift Example
17
LeftShift Example
18
LeftShift Example
19
LeftShift Example
20
LeftShift Example
21
LeftShift Example
22
LeftShift Example
23
LeftShift Example
24
LeftShift Example
25
Theorem 2
26
Proof of Point 2 in Theorem 2
27
Proof of Point 2 in Theorem 2
28
Proof of Point 3 Theorem 2
29
Definition of Well Shaped Segments
30
Definition of Well Shaped Segments
Active Window
31
Movability Lemma
If the segment i,,j is left well shaped, then
the active pair (i,i1) can be moved to the other
side of the segment by locally rearranging
sub-trees in the active window without changing
the relative order of the other items and
without changing the level function of the tree.
32
Movability Lemma
33
Movability Lemma
34
Movability Lemma
35
Movability Lemma
36
Movability Lemma
37
Theorem 3
38
Point 1 in Theorem 2
39
Hu-Tucker Algorithm
Transparent items and opaque items
Compatible pair No opaque items in the middle
Minimal compatible pair (mcp) compatible pair
(i,i1) where Weight(i) weight(i1) is minimal
Tie Breaking Rule
40
Hu-Tucker Algorithm
41
Hu-Tucker Algorithm
42
Hu-Tucker Algorithm
43
Hu-Tucker Algorithm
44
GW Algorithm
gmp Globaly Minimal Pair
GW - the same as GW but always choose gmp
instead of some other lmp.
45
Definitions
Normal sequence sequence of weights
Special sequence sequence of weights, each one
is either transparent or opaque
MoveTransparent operator converts a special
sequence into a normal sequence and moves all
transparent items to their RightPos. (first it
moves the rightmost item, then the one to its
left, etc)
46
MoveTransparent
47
MoveTransparent
48
MoveTransparent
49
MoveTransparent
50
MoveTransparent
51
MoveTransparent
52
MoveTransparent
53
MoveTransparent
54
MoveTransparent
55
MoveTransparent
56
MoveTransparent
57
MoveTransparent
58
MoveTransparent
59
MoveTransparent
60
MoveTransparent
61
MoveTransparent
62
The Simulation Lemma
Assuming there are no ties
63
Proof of the Simulation Lemma
Claim A
Claim B
64
Proof of Claim A
By contradiction assume that w,u are not visible
to each other. This means there is an opaque item
q between them. Two cases
65
Proof of Claim A
Contradiction no place for q
66
Proof of Claim A
67
Proof of Claim A
Contradiction no place for q
68
Proof of Claim B
Claim B
Proof
69
Proof of Claim B
The order of movements is from right to left,
thus w is Processed first then the items between
u and w, and then u. At this point u and w must
be adjacent, thus q must be processed later, and
thus it is to the left of u.
q is not visible from u because (u,w) is mcp
70
Proof of Claim B
Let q be the opaque item between q and u visible
from u
Contradiction
71
Conclusion
72
Claim C
73
Proof of claim C
74
Proof of Simulation Lemma
The proof of the lemma is by induction
75
Tie Braking Rule
Theorem 4 The Tie Breaking Rule (TBR) is correct
Proof
76
Proof of TBR
Case 1 All weights are strictly positive
77
Proof of TBR
Case 2 Some of the original weights are zero
Write a Comment
User Comments (0)
About PowerShow.com