Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

UGC-NET | UGC NET CS 2017 Jan – III | Question 67

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

From the given data below :
a b b a a b b a a b
which one of the following is not a word in the dictionary created by LZ-coding (the initial words are a, b)?
(A) a b
(B) b b
(C) b a
(D) b a a b


Answer: (B) (D)

Explanation: Input is : a b b a a b b a a b
According to L-Z coding:
The dictionary contains: a | b | ba | ab| baa (is already there)
baab and bb are not there
So, option B and D are correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 01 Feb, 2019
Like Article
Save Article
Similar Reads