1.

Run-Length encoding is used to compress data in bit arrays.(a) True(b) FalseMy question is based upon Bit Array in section Arrays Types of Data Structures & Algorithms IThe question was posed to me by my college professor while I was bunking the class.

Answer»

Correct choice is (a) True

For explanation: A bit ARRAY stores the combinations of bit 0 and bit 1. Each bit in the bit array is independent. Run Length encoding is a data compression technique in which data are STORED as single value and NUMBER of times that value repeated in the data. This compression reduces the space complexity in arrays. Bit arrays WITHOUT compression require more space. THUS, we will use Run-Length encoding in most of the cases to compress data in bit arrays.



Discussion

No Comment Found

Related InterviewSolutions