Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Arrays
4.2K+ articles
Strings
2.1K+ articles
Tree
909+ articles
Pattern Searching
401+ articles
palindrome
324+ articles
Advanced Data Structure
305+ articles
Segment-Tree
156+ articles
Trie
85+ articles
Suffix-Tree
17 posts
Recent Articles
Popular Articles
Difference between Suffix Array and Suffix Tree
Last Updated: 23 July 2025
Suffix Array and Suffix Tree are data structures used for the efficient string processing and pattern matching. They provide the different ways to the store and query subs...
read more
Tree
DSA
Suffix-Tree
Suffix-Array
Count of distinct substrings of a string using Suffix Trie
Last Updated: 23 July 2025
Given a string of length n of lowercase alphabet characters, we need to count total number of distinct substrings of this string. Examples:Input : str = “ababa”Output : 1...
read more
Strings
Advanced Data Structure
DSA
Arrays
Trie
Suffix-Tree
Overview of Graph, Trie, Segment Tree and Suffix Tree Data Structures
Last Updated: 23 July 2025
Introduction:Graph: A graph is a collection of vertices (nodes) and edges that represent relationships between the vertices. Graphs are used to model and analyze networks,...
read more
Advanced Data Structure
DSA
Trie
Segment-Tree
Suffix-Tree
Suffix Tree Application 6 - Longest Palindromic Substring
Last Updated: 23 July 2025
Given a string, find the longest substring which is palindrome.We have already discussed Naïve [O(n3)], quadratic [O(n2)] and linear [O(n)] approaches in Set 1, Set 2 and ...
read more
Pattern Searching
Advanced Data Structure
DSA
palindrome
Suffix-Tree
Suffix Tree Application 5 - Longest Common Substring
Last Updated: 23 July 2025
Given two strings X and Y, find the Longest Common Substring of X and Y.Naive [O(N*M2)] and Dynamic Programming [O(N*M)] approaches are already discussed here.In this arti...
read more
Pattern Searching
Advanced Data Structure
DSA
Suffix-Tree
Generalized Suffix Tree
Last Updated: 23 July 2025
In earlier suffix tree articles, we created suffix tree for one string and then we queried that tree for substring check, searching all patterns, longest repeated substrin...
read more
Pattern Searching
Advanced Data Structure
DSA
Suffix-Tree
Suffix Tree Application 4 - Build Linear Time Suffix Array
Last Updated: 23 July 2025
Given a string, build it's Suffix ArrayWe have already discussed following two ways of building suffix array:Naive O(n2Logn) algorithmEnhanced O(nLogn) algorithmPlease go ...
read more
Pattern Searching
Advanced Data Structure
DSA
Suffix-Tree
Suffix Tree Application 3 - Longest Repeated Substring
Last Updated: 23 July 2025
Given a text string, find Longest Repeated Substring in the text. If there are more than one Longest Repeated Substrings, get any one of them.Longest Repeated Substring in...
read more
Pattern Searching
Advanced Data Structure
DSA
Suffix-Tree
Suffix Tree Application 2 - Searching All Patterns
Last Updated: 23 July 2025
Given a text string and a pattern string, find all occurrences of the pattern in string. Few pattern searching algorithms (KMP, Rabin-Karp, Naive Algorithm, Finite Automat...
read more
Pattern Searching
Advanced Data Structure
DSA
Suffix-Tree
Suffix Tree Application 1 - Substring Check
Last Updated: 23 July 2025
Given a text string and a pattern string, check if a pattern exists in text or not.Few pattern searching algorithms (KMP, Rabin-Karp, Naive Algorithm, Finite Automata) are...
read more
Pattern Searching
Advanced Data Structure
DSA
Suffix-Tree
Ukkonen's Suffix Tree Construction - Part 6
Last Updated: 23 July 2025
This article is continuation of following five articles:Ukkonen’s Suffix Tree Construction – Part 1Ukkonen’s Suffix Tree Construction – Part 2Ukkonen’s Suffix Tree Constru...
read more
Pattern Searching
Advanced Data Structure
DSA
Suffix-Tree
Ukkonen's Suffix Tree Construction - Part 5
Last Updated: 23 July 2025
This article is continuation of following four articles:Ukkonen’s Suffix Tree Construction – Part 1Ukkonen’s Suffix Tree Construction – Part 2Ukkonen’s Suffix Tree Constru...
read more
Pattern Searching
Advanced Data Structure
DSA
Suffix-Tree
Ukkonen's Suffix Tree Construction - Part 4
Last Updated: 23 July 2025
This article is continuation of following three articles:Ukkonen’s Suffix Tree Construction – Part 1Ukkonen’s Suffix Tree Construction – Part 2Ukkonen’s Suffix Tree Constr...
read more
Pattern Searching
Advanced Data Structure
DSA
Suffix-Tree
Ukkonen's Suffix Tree Construction - Part 3
Last Updated: 23 July 2025
This article is continuation of following two articles:Ukkonen’s Suffix Tree Construction – Part 1Ukkonen’s Suffix Tree Construction – Part 2Please go through Part 1 and P...
read more
Pattern Searching
Advanced Data Structure
DSA
Suffix-Tree
Ukkonen's Suffix Tree Construction - Part 2
Last Updated: 23 July 2025
In Ukkonen’s Suffix Tree Construction – Part 1, we have seen high level Ukkonen’s Algorithm. This 2nd part is continuation of Part 1.Please go through Part 1, before looki...
read more
Pattern Searching
Advanced Data Structure
DSA
Suffix-Tree
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !