Data Structures and Algorithms

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/10

flashcard set

Earn XP

Description and Tags

Orange - Examples of Data Structures

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

Data Structures

These are a particular way of organizing data in a computer to be used efficiently. It is the arrangement of data in the memory locations to represent values of the carrier set of an abstract data type.

These are also based on the ability of a computer to fetch and store data at any place in its memory, which is specified by a pointer

2
New cards

Pointer

A bit string representing a memory address that can be stored in memory and manipulated by the program.

3
New cards

Array

A fixed-length, ordered collection of values of the same type stored in contiguous memory locations. The collection may be ordered in several dimensions. It consists of elements and (1) array index.

It can be considered as the simplest type of data structure and can be either a one-dimensional or a two-dimensional array (matrix).

<p>A fixed-length, ordered collection of values of the same type stored in contiguous memory locations. The collection may be ordered in several dimensions. It consists of <strong>elements</strong> and (1) <strong>array index</strong>.</p><p>It can be considered as the simplest type of data structure and can be either a one-dimensional or a two-dimensional array (<strong>matrix).</strong></p>
4
New cards

List

An abstract data type that represents a sequence of values, where the same value may occur more than once.

Instance of a list- is a computer representation of the mathematical concept of a finite sequence.
Streams - (potentially) infinite analog of a list.

<p>An abstract data type that represents a sequence of values, where the same value may occur more than once.</p><p><strong>Instance </strong>of a list-  is a computer representation of the mathematical concept of a finite sequence.<br><strong>Streams -</strong> (potentially) infinite analog of a list.</p>
5
New cards

Linked List

Consist of chains of nodes where each node contains information such as data and a pointer to the next node in the chain.

They are among the simplest and most common data structures that can be used to implement several other common abstract data types.

<p>Consist of <strong>chains of nodes </strong>where each node contains information such as<strong> data </strong>and a <strong>pointer to the next node</strong> in the chain.</p><p>They are among the simplest and most common data structures that can be used to implement several other common abstract data types.</p>
6
New cards

First-In-First-Out (FIFO)

A data structure where the first element added to the queue will be the first one to be removed.

7
New cards

Stack

A kind of abstract data type or collection in which the principal operations on the collection are the addition of an entity to the collection (push) and the removal of an entity (pop). It is a Last-In-First-Out (LIFO).

it is said to be full if it does not contain enough space to accept an entity to be pushed, and it is then considered to be in an overflow state.

<p>A kind of abstract data type or collection in which the principal operations on the collection are the addition of an entity to the collection (<strong>push) </strong>and the removal of an entity (<strong>pop). </strong>It is a <strong>Last-In-First-Out (LIFO).</strong></p><p>it is said to be full if it does not contain enough space to accept an entity to be pushed, and it is then considered to be in an <strong>overflow state.</strong></p>
8
New cards

Queue

A kind of abstract data type or collection in which the entities in the collection are kept in order, and the principal operations on the collection are the addition of entities to the rear terminal position and the removal of entities from the front terminal position. It is a First-In-First-Out (FIFO)

<p>A kind of abstract data type or collection in which the entities in the collection are kept in order, and the principal operations on the collection are the addition of entities to the rear terminal position and the removal of entities from the front terminal position. It is a <strong>First-In-First-Out (FIFO)</strong></p>
9
New cards

Hashing

A method for storing and retrieving records from a data base. It allows one to insert, delete, and search for records based on a search key value.

<p>A method for storing and retrieving records from a data base. It allows one to insert, delete, and search for records based on a search key value.</p>
10
New cards

Hast Table

It is a hash system stores records in an array. It works by performing a computation on a search key K.

11
New cards

Trees

A data structure made up of nodes or vertices and edges without having any cycles.

It can be defined recursively as a collection of nodes (starting at a root node), where each node is a data structure consisting of a value, together with a list of references to nodes (the “children”), with the constraints that no references is duplicated, and none points to the root.

<p>A data structure made up of <strong>nodes </strong>or vertices and edges without having any cycles.</p><p>It can be defined recursively as a collection of nodes (starting at a root node), where each node is a data structure consisting of a value, together with a list of references to nodes (the “children”), with the constraints that no references is duplicated, and none points to the root.</p>