Lesson 1: Introduction to Data Structure

studied byStudied by 13 people
5.0(1)
Get a hint
Hint

Why Data Structure Matters

1 / 22

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

23 Terms

1

Why Data Structure Matters

  • serves as an architectural blueprint

  • dictates how data is organized and accessed by the elegance of the software system

New cards
2

Data Structure

A systematic way of organizing and storing data in a computer so it can be efficiently accessed and modified

  • arranging data in a computer

  • like a container or a format that enables us to work with data effectively

  • fundamental building blocks

New cards
3

Classifications of Data Structure

  1. Primitive and Non-primitive Data

  2. Linear and Non-linear Data

New cards
4

Primitive Data Structure

  • fundamental type of data structure

  • store one data or single type of data

  • EXAMPLES: integer, float, character, and pointer

New cards
5

Non-primitive Data Structure

  • type of data structure that the user can define that store on a different type in a single entity

  • EXAMPLE: arrays, lists, and files

New cards
6

Linear Data Structure

  • static and dynamic

  • a type of data structure that is sequential

  • all data or element are stored in a sequential manner

  • EXAMPLES: array, list, stack, and queue

New cards
7

Non-linear Data Structure

  • form of data structure that doesn’t stay arranged sequentially

  • doesn’t involve a single level

  • not easy to implement

  • utilization of computer memory is efficient

  • EXAMPLES: graph and tree

New cards
8

Basic Data Type (or Primitive Data Structures)

  • represents a set of individual data and is frequently used to create a program

  • also called atomic data structure because it represent a data where it can no longer be divided

  • can store a single value in a variable

  • divided into two: Simple Type and Pointer Type

New cards
9

Simple Type

  • declared according to syntax rule of programming language

  • stores value that the users input

Example declaration:

DataType VariableName = value;

New cards
10

Pointer Type

  • can hold or store memory address of another variable

  • when declaring, it has to specify the data type it points to

New cards
11

Structure Type (or Simple Data Structure)

  • a data structure that contains a basic data type or any of the defined data types as its elements

  • useful if we want to organize a collection of data but does not want to manage the data separately

  • EXAMPLES: arrays, strings, and records

New cards
12

Trees (Non-primitive - Non-linear)

  • hierarchical data structure with root nodes and branches leading to various child nodes

  • used for task-like organizing data

New cards
13

Graphs (Non-primitive - Non-linear)

  • used to represent connection between objects

  • consist of edge and vertices

  • crucial for modelling complex relationships

New cards
14

Hash Table (Non-primitive - Non-linear)

  • uses hash function to map keys allowing for the rapid data retrieval

  • often used in databases and implementing data dictionary

New cards
15

Benefits of Data Structures

  • efficiency of the program

  • exhibits time complexity

  • reusable

  • data storage

  • access the data anytime

New cards
16

Disadvantages of Data Structure

  • complex

  • time

  • cumbersome (complex)

New cards
17

Traversing (Data Structure Operations)

accessing or visiting each storage location where the data is stored

New cards
18

Searching (Data Structure Operations)

finding the location/s of data that satisfies one or more conditions

New cards
19

Inserting (Data Structure Operations)

adding new data into the data structure

New cards
20

Deleting (Data Structure Operations)

removing existing data from the data structure

New cards
21

Sorting (Data Structure Operations)

arranging the data in a specified order, either ascending or descending

New cards
22

Merging (Data Structure Operations)

combining the data from two data structures

New cards
23

Searching for Min/Max

  • finding the minimum or maximum element in the data structure

  • often used in priority queues or finding extreme values in datasets

New cards

Explore top notes

note Note
studied byStudied by 43 people
... ago
5.0(2)
note Note
studied byStudied by 33 people
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 25 people
... ago
5.0(2)
note Note
studied byStudied by 140 people
... ago
5.0(1)
note Note
studied byStudied by 3 people
... ago
5.0(1)
note Note
studied byStudied by 11 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (24)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 61 people
... ago
5.0(2)
flashcards Flashcard (55)
studied byStudied by 478 people
... ago
4.5(6)
flashcards Flashcard (54)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (115)
studied byStudied by 88 people
... ago
4.0(1)
flashcards Flashcard (91)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (27)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (55)
studied byStudied by 119 people
... ago
5.0(1)
robot