SlideShare a Scribd company logo
1 of 27
TRIES
AN EXCELLENT DATA
STRUCTURE FOR
STRINGS
Tries
 Instructor
Md. Shamsujjoha
Senior Lecturer
Department of CSE
East West University
 Presented by:
Md. Naim Khan
Id :2014-2-60-092
Md. Riad Khan
Id :2014-1-60-040
Slide
2
Overview
 History & Definition
 Types of Tries
Standard Tries
Compressed Tries
Suffix Tries
 Conclusion
Slide
3
History
 The term trie comes from retrieval.
 This term was coined by Edward Fredkin, who
pronounce it tri as in the word retrieval.
Slide
4
Definition of Tries
 A data structure for representing a collection of
strings.
 In computer science, a trie, also called digital tree
and sometimes radix tree or prefix tree.
Tries support fast pattern matching.
Slide
5
Properties of a tries
 A multi-way tree.
 Each node has from 1 to n children.
 Each edge of the tree is labeled with a character.
 Each leaf nodes corresponds to the stored string,
which is a concatenation of characters on a path
from the root to this node.
Slide
6
Standard Trie
 The standard trie for a set of strings S is an ordered
tree such that:
*Each node but the root is labeled with a character.
*The children of a node are alphabetically ordered.
*The paths from the external nodes to the root yield
the strings of S.
Slide
7
Standard Tries - Insertion
 Strings ={an, and, any, at}
n
a
d
t
y
Root
Slide
8
Example of Standard tries
 Example: Standard trie for the set of strings
S = { bear, bell, bid, bull, buy, sell, stock, stop }
te
s
uie
b
o
llla
d y
c
k
p
lllr
Root
Slide
9
Handling keys(strings)
 When a key(string) is a prefix of another key.
 How can we know that “an” is a word?
Example: an, and
n
a
d
t
y
Root
Slide
10
Handling keys(strings)
 We add a special termination symbol “$’’
 We append the “$’’ to each keyword
 Strings={ an, and, any, at}
n
a
d
t
y
Root
$
$ $
$
Slide
11
Standard Tries- Searching
 Search hit: Node where search ends has a $ symbol
 Search - sea
n
a
d
t
y
Root
a t
e
s
$
$$
$
$ $
Slide
12
Standard Tries- Deletion
 Three cases
Word not found…!
Word exists as a stand alone word.
Word exists as a prefix of another word
Slide
13
Standard Tries- Deletion
 Word not found
return false.
 Word exists as a stand alone word
part of any other word
does not a part of any other word
Slide
14
Standard Tries- Deletion
 Part of any other word
 Delete - sea
n
a
d
t
y
Root
a t
e
s
$
$$
$
$ $
Slide
15
Deleted
Standard Tries-Deletion
 Does not a part of any other word
 Delete - set
n
a
d
t
y
Root
t
e
s
$
$
$
$ $
Slide
16
Deleted
Standard Tries- Deletion
 Word exists as a prefix of any other word.
 Delete - an
n
a
d
t
y
Root
a t
e
s
$
$$
$
$ $
Slide
17
Deleted
Compressd Tries
 Tries with nodes of degree at least 2
 Obtained by standard tries by compressing
chains of redundant nodes
Slide
18
Compressed Trie- Example
 In order to understand Compressed Trie we need to
see the Standard Trie Example:
te
s
uie
b
o
llla
d y
c
k
p
lllr
Root
Standard Trie
Slide
19
Compressed Tries Example
 Compressed Tries:
 S = { bear, bell, bid, bull, buy, sell, stock, stop }
b
s
e u toid ell
llar ll y
ck p
Root Compressed Trie
Slide
20
Suffix Tries
 A suffix trie is a compressed trie for all the suffixes of
a text.
 Suffix trie are a space-efficient data structure to store
a string that allows many kinds of queries to be
answered quickly.
Slide
21
Example of Suffix Tries
 Let us consider an example text “soon$″.
Root
s
o
o
n
o
o
n
n
n
$
$
$
$
$
Slide
22
soon$
oon$
$
n$
on$
Done
 After alphabetically ordered the trie will look like
Root
s
o
o
n
o
o
n
n
n
$
$
$
$
$
Example of Suffix Tries
Understanding Requirements
 Insertion is faster as compared to the Hash Table
 Lookup is much more faster than Hash Table
implementations
 There are no collision of different keys in tries
Slide
23
References
Web pages
 http://www.mathcs.emory.edu/~cheung/Courses/323/Syll
abus/Text/trie01.html
 http://fbim.fh-
regensburg.de/~saj39122/sal/skript/progr/pr45102/Tries.p
df
 http://www.ideserve.co.in/learn/trie-delete
 http://algs4.cs.princeton.edu/lectures/52Tries.pdf
Book
 Data Structure and Algorithm
by Alfred V. Aho
Jeffery D. Ullman
John E.HopcroftJohn
Slide
24
Questions or Suggestions
Slide
25
Thank you
Slide
26
Inquiry
riadmrk.khan@gmail.com
naim1248@gmail.com

More Related Content

What's hot (20)

Red black tree
Red black treeRed black tree
Red black tree
 
Quick sort
Quick sortQuick sort
Quick sort
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
Greedy Algorihm
Greedy AlgorihmGreedy Algorihm
Greedy Algorihm
 
Randomized algorithms ver 1.0
Randomized algorithms ver 1.0Randomized algorithms ver 1.0
Randomized algorithms ver 1.0
 
TRIES_data_structure
TRIES_data_structureTRIES_data_structure
TRIES_data_structure
 
SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
Array operations
Array operationsArray operations
Array operations
 
Data Structures- Part5 recursion
Data Structures- Part5 recursionData Structures- Part5 recursion
Data Structures- Part5 recursion
 
Abstract Data Types
Abstract Data TypesAbstract Data Types
Abstract Data Types
 
Trees, Binary Search Tree, AVL Tree in Data Structures
Trees, Binary Search Tree, AVL Tree in Data Structures Trees, Binary Search Tree, AVL Tree in Data Structures
Trees, Binary Search Tree, AVL Tree in Data Structures
 
Linear Search Presentation
Linear Search PresentationLinear Search Presentation
Linear Search Presentation
 
Trie Data Structure
Trie Data Structure Trie Data Structure
Trie Data Structure
 
Apriori Algorithm
Apriori AlgorithmApriori Algorithm
Apriori Algorithm
 
b+ tree
b+ treeb+ tree
b+ tree
 
Binary Search Tree in Data Structure
Binary Search Tree in Data StructureBinary Search Tree in Data Structure
Binary Search Tree in Data Structure
 
AVL Tree
AVL TreeAVL Tree
AVL Tree
 
Merge sort algorithm power point presentation
Merge sort algorithm power point presentationMerge sort algorithm power point presentation
Merge sort algorithm power point presentation
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
 

Viewers also liked (20)

Application of tries
Application of triesApplication of tries
Application of tries
 
Trie Data Structure
Trie Data StructureTrie Data Structure
Trie Data Structure
 
Tries - Tree Based Structures for Strings
Tries - Tree Based Structures for StringsTries - Tree Based Structures for Strings
Tries - Tree Based Structures for Strings
 
Trie (1)
Trie (1)Trie (1)
Trie (1)
 
Trie tree
Trie treeTrie tree
Trie tree
 
Lec18
Lec18Lec18
Lec18
 
Interactive High-Dimensional Visualization of Social Graphs
Interactive High-Dimensional Visualization of Social GraphsInteractive High-Dimensional Visualization of Social Graphs
Interactive High-Dimensional Visualization of Social Graphs
 
Introduction of suffix tree
Introduction of suffix treeIntroduction of suffix tree
Introduction of suffix tree
 
Multi way&btree
Multi way&btreeMulti way&btree
Multi way&btree
 
Packet forwarding in wan.46
Packet  forwarding in wan.46Packet  forwarding in wan.46
Packet forwarding in wan.46
 
Suffix Tree and Suffix Array
Suffix Tree and Suffix ArraySuffix Tree and Suffix Array
Suffix Tree and Suffix Array
 
Application of hashing in better alg design tanmay
Application of hashing in better alg design tanmayApplication of hashing in better alg design tanmay
Application of hashing in better alg design tanmay
 
Introduction to statistics ii
Introduction to statistics iiIntroduction to statistics ii
Introduction to statistics ii
 
Geo webinarjune2015
Geo webinarjune2015Geo webinarjune2015
Geo webinarjune2015
 
R-Trees and Geospatial Data Structures
R-Trees and Geospatial Data StructuresR-Trees and Geospatial Data Structures
R-Trees and Geospatial Data Structures
 
B tree long
B tree longB tree long
B tree long
 
Fundamentals
FundamentalsFundamentals
Fundamentals
 
Basic Packet Forwarding in NS2
Basic Packet Forwarding in NS2Basic Packet Forwarding in NS2
Basic Packet Forwarding in NS2
 
Digital Search Tree
Digital Search TreeDigital Search Tree
Digital Search Tree
 
B-tree & R-tree
B-tree & R-treeB-tree & R-tree
B-tree & R-tree
 

Recently uploaded

HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 

Recently uploaded (20)

HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 

Data structure tries

  • 2. Tries  Instructor Md. Shamsujjoha Senior Lecturer Department of CSE East West University  Presented by: Md. Naim Khan Id :2014-2-60-092 Md. Riad Khan Id :2014-1-60-040 Slide 2
  • 3. Overview  History & Definition  Types of Tries Standard Tries Compressed Tries Suffix Tries  Conclusion Slide 3
  • 4. History  The term trie comes from retrieval.  This term was coined by Edward Fredkin, who pronounce it tri as in the word retrieval. Slide 4
  • 5. Definition of Tries  A data structure for representing a collection of strings.  In computer science, a trie, also called digital tree and sometimes radix tree or prefix tree. Tries support fast pattern matching. Slide 5
  • 6. Properties of a tries  A multi-way tree.  Each node has from 1 to n children.  Each edge of the tree is labeled with a character.  Each leaf nodes corresponds to the stored string, which is a concatenation of characters on a path from the root to this node. Slide 6
  • 7. Standard Trie  The standard trie for a set of strings S is an ordered tree such that: *Each node but the root is labeled with a character. *The children of a node are alphabetically ordered. *The paths from the external nodes to the root yield the strings of S. Slide 7
  • 8. Standard Tries - Insertion  Strings ={an, and, any, at} n a d t y Root Slide 8
  • 9. Example of Standard tries  Example: Standard trie for the set of strings S = { bear, bell, bid, bull, buy, sell, stock, stop } te s uie b o llla d y c k p lllr Root Slide 9
  • 10. Handling keys(strings)  When a key(string) is a prefix of another key.  How can we know that “an” is a word? Example: an, and n a d t y Root Slide 10
  • 11. Handling keys(strings)  We add a special termination symbol “$’’  We append the “$’’ to each keyword  Strings={ an, and, any, at} n a d t y Root $ $ $ $ Slide 11
  • 12. Standard Tries- Searching  Search hit: Node where search ends has a $ symbol  Search - sea n a d t y Root a t e s $ $$ $ $ $ Slide 12
  • 13. Standard Tries- Deletion  Three cases Word not found…! Word exists as a stand alone word. Word exists as a prefix of another word Slide 13
  • 14. Standard Tries- Deletion  Word not found return false.  Word exists as a stand alone word part of any other word does not a part of any other word Slide 14
  • 15. Standard Tries- Deletion  Part of any other word  Delete - sea n a d t y Root a t e s $ $$ $ $ $ Slide 15 Deleted
  • 16. Standard Tries-Deletion  Does not a part of any other word  Delete - set n a d t y Root t e s $ $ $ $ $ Slide 16 Deleted
  • 17. Standard Tries- Deletion  Word exists as a prefix of any other word.  Delete - an n a d t y Root a t e s $ $$ $ $ $ Slide 17 Deleted
  • 18. Compressd Tries  Tries with nodes of degree at least 2  Obtained by standard tries by compressing chains of redundant nodes Slide 18
  • 19. Compressed Trie- Example  In order to understand Compressed Trie we need to see the Standard Trie Example: te s uie b o llla d y c k p lllr Root Standard Trie Slide 19
  • 20. Compressed Tries Example  Compressed Tries:  S = { bear, bell, bid, bull, buy, sell, stock, stop } b s e u toid ell llar ll y ck p Root Compressed Trie Slide 20
  • 21. Suffix Tries  A suffix trie is a compressed trie for all the suffixes of a text.  Suffix trie are a space-efficient data structure to store a string that allows many kinds of queries to be answered quickly. Slide 21
  • 22. Example of Suffix Tries  Let us consider an example text “soon$″. Root s o o n o o n n n $ $ $ $ $ Slide 22 soon$ oon$ $ n$ on$ Done
  • 23.  After alphabetically ordered the trie will look like Root s o o n o o n n n $ $ $ $ $ Example of Suffix Tries
  • 24. Understanding Requirements  Insertion is faster as compared to the Hash Table  Lookup is much more faster than Hash Table implementations  There are no collision of different keys in tries Slide 23
  • 25. References Web pages  http://www.mathcs.emory.edu/~cheung/Courses/323/Syll abus/Text/trie01.html  http://fbim.fh- regensburg.de/~saj39122/sal/skript/progr/pr45102/Tries.p df  http://www.ideserve.co.in/learn/trie-delete  http://algs4.cs.princeton.edu/lectures/52Tries.pdf Book  Data Structure and Algorithm by Alfred V. Aho Jeffery D. Ullman John E.HopcroftJohn Slide 24