Showing posts with label DS Qs. Show all posts
Showing posts with label DS Qs. Show all posts

Sunday, January 7, 2018

Why to study Algorithms, when memory is inexpensive?

Computers would be fast, but they are not infinitely fast. And memory would be inexpensive, but it is not free. Computing time is therefore a bounded resource, and so is space in memory. One should use these resources wisely, and algorithms that are efficient in terms of time or space would help one to achieve that.

Also, having a solid base of algorithmic knowledge and technique is one characteristic that separates the truly skilled programmers from the novices. With modern computing technology, one can accomplish some tasks without knowing much about algorithms, but with a good background in algorithms, one can do much, much more.

Sunday, December 17, 2017

What is a Data Structure?

A Data structure is a way to store and organize data in order to facilitate access and modifications. Each, among all the existed, has it's strengths and limitations, which are to be understood before using any - No single data structure works well for all purposes.

Sunday, November 12, 2017

What is an Algorithm?

An Algorithm is a sequence of computational steps (to reorder set of numbers, say for an instance) that transform the input ({6, 2, 5, 1, 4, 3}) into the output ({1, 2, 3, 4, 5, 6}).