Posts

DATA STRUCTURE LESSON -1

 * Data structure is way of storing data in computers, and algorithims are set of operations on that data. * In normal list searching is easy(means finding index) but adding the new element in the list is difficult ( to add an element in the list we have to create a new list and then add that element on new list. BUT  in linked list searching is difficult we have to count to each of  the elment in the list, where as adding a new element is easy, as attaching new theread to the boxes( for adding elements) as simple as. * Each variable  stored in memory is converted into array, one integrer takes 32bits and 4 byte. * As there is difference in memory and storage, memory is keep going * That is why adding anything in the array is difficult, like we create a list, then create a new variable, then ab hame lge ki list mai kuch or add kr de to hume doobara se wo list banani padegi, that is why more energy is consume. *