+1 vote
in Data Structures & Algorithms I by (110k points)
Suffix array of the string “statistics” is ____________

(a) 2 8 7 4 9 0 5 1 6 3

(b) 2 7 4 9 8 0 5 1 6 3

(c) 2 4 9 0 5 7 8 1 6 3

(d) 2 8 7 0 5 1 6 9 4 3

My question is from Arrays Types topic in portion Arrays Types of Data Structures & Algorithms I

This question was posed to me in my homework.

1 Answer

+1 vote
by (408k points)
selected by
 
Best answer
Right option is (a) 2 8 7 4 9 0 5 1 6 3

Explanation: The suffix array of the string statistics will be:

2 atistics

8 cs

7 ics

4 istics

9 s

0 statistics

5 stics

1 tatistics

6 tics

3 tistics

In Suffix array, we only store the indices of suffixes. So, correct option is 2 8 7 4 9 0 5 1 6 3.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...