Top answers


Describe the differences between a binary and linear search algorithm.

The binary and linear search algorithms describe two methods of finding a particular item in a list. They both have strengths in terms of how fast they are, but this depends on what type of list you are sear...
JE
Answered by Jack E. • Computing tutor
2941 Views

Convert 56 (decimal value) into its binary equivalent

56 into binary56/2 = 28 remainder 028/2 = 14 remainder 014/2 = 7 remainder 07/2 = 3 remainder 13/2 = 1 remainder 1and only 1 is remainingWrite the remainders you found in order from step 6 to 1 = 111000Write...
FW
Answered by Freya W. • Computing tutor
3498 Views

Explain lossless compression.

Lossless compression is when an image or document is reconstructed in a more efficient way using an algorithm to rewrite it. No data is lost from the file despite the compressed version taking up less memory...
FW
Answered by Freya W. • Computing tutor
2714 Views

Explain what is meant by "volatile" and "non-volatility" memory, their uses, and the difference between them

The contents of volatile memory, also known as flash memory, is not preserved when the device is turned off, unlike non-volatility memory, also known as persistent memory, which can be used for long term dat...
TB
Answered by Thomas B. • Computing tutor
7020 Views

Describe the time complexity for the search operation in a binary search tree.

Since the question asks for the time complexity we should consider both the average and the worst time complexities. In a binary search tree the values are sorted such that for each node the elements bigger ...
VA
Answered by Volf A. • Computing tutor
5848 Views