Module 1 Flashcards

1
Q

These are the programmatic way of storing data so it can be used efficiently

A

Data structures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

It represents the set of operations that a data structure supports

A

Interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

This provides the internal representation of a data structure, as well as provide the definition of the algorithms used in the operations

A

Implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Data structures are used for specifying the collection of attributes and corresponding structures used to store records in a DBMS

A

Storing data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

_____ resources and services are enabled through the use of data structures

A

Core operating system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Core operating system resources and services are enabled through the use of data structures

A

Managing resources and services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Data structures define the organization of information shared between applications, such as TCP/IP packets

A

Data exchange

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

These provide efficient methods of sorting objects, such as character strings used as tags; programmers can manage items organized according to a specific priority

A

Ordering and sorting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Data structures stored in a database such as B-trees are used to index objects

A

Indexing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Indexes created using binary search trees, B-trees or hash tables speed the ability to find a specific sought-after item

A

Searching

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Big data applications use data structures for allocating and managing data storage across distributed storage locations

A

Scalability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

This characteristic describes whether the data items are arranged in a sequential order, such as with an array, or in an unordered sequence, such as with a graph

A

Linear or non-linear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

This characteristic describes whether all data items in a given repository are of the same type.

A

Homogenous or heterogenous

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

This characteristic describes how the data structures are compiled

A

Static or dynamic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

These have fixed sizes, structures and memory locations at compile time

A

Static data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

These have sizes, structures and memory locations that can shrink or expand, depending on the use

A

Dynamic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Why do we need data structure?

A

Data search
Processor speed
Multiple requests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

True or false: Data can be organized in a data structure in such a way that all items may not be required to be searched, and the required data can be searched almost instantly

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

This is the scenario where a particular data structure operation takes maximum time it can take

A

Worst case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

This is the scenario depicting the average execution time of an operation of a data structure

A

Average case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

This is the scenario depicting the least possible execution time of an operation of a data structure

A

Best case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

These are set of values

A

Data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

These refer to single unit of values

A

Data item

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Data items that are divided into sub items are called

A

Group items

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Data items that cannot be divided are called as
Elementary items
26
It contains certain attributes or properties, which may be assigned values
Attribute and Entity
27
These are entities of similar attribtues forming an entity set
Entity set
28
This is a single elementary unit of information representing an attribute of an entity
Field
29
This is a collection of field values of a given entity
Record
30
This is a collection of records of the entities in a given entity set
File
31
It is a structure of fixed-size, which can hold items of the same data type
Array
32
What are the different sorting algorithms
Insertion sort, quick sort, bubble sort, merge sort
33
This is a sequential structure that consists of a sequence of items in linear order which are linked to each other
Linked lists
34
This is a LIFO (Last In First Out-the element placed at last can be accessed at first)
Stack
35
This is a FIFO (First In First Out --the element placed at first can be accessed at first); resembles people waiting in a line
Queues
36
This is a data structure that stores values which have keys associated with each of them
Hash table
37
This is a hierarchical structure where date is organized hierarchically and are linked together
Tree
38
What are the different applications of trees
Binary trees Binary Search Tree Heaps Treaps
39
This is a special case of a binary tree where the parent nodes are compared to their children with their values arranged accordingly
Heap
40
These are used to find the smallest (or largest) value in a given array
Heaps
41
These consist of a finite set of vertices or nodes and a set of edges connecting these vertices
Graph
42
This is the number of vertices in the graph
order
43
This is the number of edges in the graph
Size
44
These are used to represent social media networks
Graphs
45
These are used to represent web pages and links by search engines
Graphs
46
These are used to represent locations and routes in GPS
Graphs
47
These are used to implement expression parsers and solvers
Binary Trees
48
Used in many search applications where data are constantly entering and leaving
Binay Search Trees
49
Used by Java Virtual Machine to store java objects
Heaps
50
Data structure used in wireless networking
Treaps
51
What are the 8 common datatypes?
Arrays Linked Lists Stack Queues Hash Table Trees Heap Graph
52
Application of arrays
- For building other data structures - Array lists - Heaps - Hash Tables - Vectors - Matrices - For sorting algorithms: - Insertion sort - Quick sort - Bubble sort - Merge sort -
53
Application of Linked Lists
- Symbol Table Management - Switching between programs using alt + tab (using circular linked list)
54
Applications of stacks
- Expression evaluation: - shunting-yard algorithm - parsing and evaluating mathematical expressions - implementing function calls in recursion programming
55
Application of Queues
- Multithreading - Implementing queuing systems (i.e., priority queues)
56
Applications of hash tables
- Database indexes - Associative arrays - Set data structure
57
Applications of trees
Binary trees: expression parsers and solvers Binary Search Tree Heaps: used by Java Virtual Machine Treaps: Used in wireless networking
58
Applications of heaps
- Heapsort algorithm - Implement priority queues - Queue functions within O(log n) time - Used to find the smallest or largest value in an array
59
Applications of graphs
- represent social media networks: user - vertex; users - edge - represent web pages and links: each page - vertex; hyperlink: edge - page ranking in google - locations and routes in GPS: location - vertices; routes: edges - calculate the shortest route between two locations
60
How are data structures used:
Storing Data Managing resources and services Data Exchange Ordering and Sorting Indexing Searching Scalability