Professional Documents
Culture Documents
Lacida
BS Information Technology
Block A
Data structure is a storage that is used to store and organize data. It is a way of arranging data on
a computer so that it can be accessed and updated efficiently.
Depending on your requirement and project, it is important to choose the right data structure for
your project. For example, if you want to store data sequentially in the memory, then you can go
for the Array data structure.
Answer :
Linked List - A list of nodes where a single node contains a data element and a reference to the
next node.
Example - Music player
Tree - A hierarchical data structure with different types of nodes such as root, parent, leaf etc.
Heap - A tree based data structure where the order of nodes matters. In max heap structure, a root
node has higher value than the leaf nodes.
Sorting - It’s not a data structure but a method to order elements. Bubble sort, merge sort are
some examples of the sorting algorithm.
Answer :
An algorithm is a step-by-step process that specifies a series of directives that must be followed
in a particular sequence in order to yield the desired outcome. An algorithm can be implemented
in more than one programming language because algorithms are typically designed
independently of the underlying languages. A few properties of an algorithm include clarity,
excellence, efficacy, and language independence. An algorithm's performance and scalability are
what really determine how important it is..
Answer :
Answer :
A nice illustration of a real-world algorithm is Google search.
Even an apparently straightforward action like a Google search may only be performed with the
aid of algorithms. Imagine that you are interested in learning whether an elephant can swim. The
input you are asking the computer to determine is how you phrase the enquiry to Google.
Even without all the words in the query "can an elephant swim?
Try searching for "swimming elephant," for instance, and see the results. The output or results
will show videos of swimming elephants right away, followed by more information. These
responses are produced by Google using an algorithm, therefore the complete query is not
necessary.