Answer:
Answer:
•In computer science, a data structure is a format that organizes, manages, and stores data.
•For a data structure to be practical, it must be relevant to the task and easy to use.
•Programmers should be able to quickly and efficiently store and retrieve data using the structure. •Additionally, the data must be arranged in a sensible way within the context of the program.
•A data structure must also support useful and usable algorithms.
Categories:
•Data Structure is divided into two categories(Linear data structure and Non-linear data structure.)
Linear data structure:-
•In linear data structures, the elements are arranged in sequence one after the other.
•Since elements are arranged in particular order, they are easy to implement.
Non-linear data structure:-
•Unlike linear data structures, elements in non-linear data structures are not in any sequence.
•Instead they are arranged in a hierarchical manner where one element will be connected to one or more elements.