Lec 1
Lec 1
Lecture 1
Data Structure
Data structure is a particular way of storing and organizing
information in a computer so that it can be retrieved and used most
productively.
Tries- A trie, or keyword tree, is a data structure that stores strings as data
items that can be organized in a visual graph.
All the above types of DS are non-primitive. These are considered
complex data structures as they can store large amounts of interconnected
data.
Examples of primitive, or basic, data structures are integers,
floats, Booleans and characters.
Stack
Queues
Linked List
Tree
Graph
Hash Table
Tries
Uses of data structures
In general, data structures are used to implement the physical forms
of abstract data types. This can be translated into a variety of
applications, such as displaying a relational database as a binary
tree.
Data structures are also a crucial part of designing efficient
software.
Importance of data structures
Data structures are essential for managing large amounts of data, such as
information kept in databases or indexing services, efficiently. Proper
maintenance of data systems requires the identification of memory allocation,
data interrelationships and data processes, all of which data structures help with.
Additionally, it is not only important to use data structures but it is important to
choose the proper data structure for each task. Choosing an ill-suited data
structure could result in slow runtimes or unresponsive code. A few factors to
consider when picking a data structure include what kind of information will be
stored, where should existing data be placed, how should data be sorted and
how much memory should be reserved for the data.
References