Data Flashcards

1
Q
  1. Data is classified into ? Sych as?
  2. This has domain of allowed valued n set of OPERATION has categ of PRINITIVE N ADT
A
  1. Data is classified into DATA TYPES , as char, float, int
  2. Data Types
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. Primitive is aka as ?
  2. ?? How data can be stored in diff STRUCTURES
  3. ?? Helps us how to solve diff problems by searching thru n manipulating data , provides step by step instructions to achieve goal
A
  1. simple or Atomic data types
  2. Data Structures
  3. Algorithmns
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. A data struc by prog lang to repre single values ( INT, FLOAT CHAR BOOLEANS)
  2. A data struc BUILT USING PRIMITIVE DATA TYPES N MORE COMPLex ( linked list, stacks, trees)
  3. Way of organizing data pra efficiently
  4. Measure of amt of time an algo takes to run,
  5. Measure of d amt of MEMORY an algo uses
A

1.Primitive Data types
2. Abstract Data Type
3. Data structures
4. Time complexity
5. Space Cimplexity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. where a funct call itself
  2. a mathe. nota. describ. the limiting behavior of a function’
  3. A methpd of solving complex prob by BREAKING THEM in smaller sub-problems
  4. simple and straight forward way an algorithm can work by simply trying all possible solutions and then choosing the best one.
A

1.Recursion
2.2. Big O
3.divide n Conquer
4.4. brute force

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. fibonacci numbers r always named after an ??? in a ???? century
  2. how to find the nth fibo numer using recursion?
A
  1. italian, 13th
  2. n = F(n-1)+f(n-2)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. a data struct to STORE MULTIPLE elements
  2. You cannot resize an
    array. t?F
  3. Multidimensional arrays are implemented
    as arrays of arrays
    4.Algorithms are expressed in pseudo-code
A
  1. Array
  2. T
  3. t
  4. T
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

1/ recursion has 2 parts
2. What is a smaller identical problem(s)?
3. 2. ow are the answers to smaller problems combined to
form the answer to the larger problem
3 the smallest problem that can be solved easily
(without further decomposition)?

A

1.1 Base case// stopping condition
1.2 Recursive call// call itself w diff arguments, reduces complexity of the problem
2. Decomposition
3. Compositioin
4. base case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. a** linear data struc** insertions n deletions r allowed ONLY AT THE END , LIFO
  2. this adds an element to the top of the stack
  3. Removes top elemen from stakc
  4. Checks if stack is empty
  5. ReTURNS THE TOP ELE WITHOUT REMOVING
  6. check is stack is full
A
  1. Stack
  2. Push
  3. Pop
  4. isEmpty
  5. Peek
  6. IfFull
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

1.The items are popped in the reversed order in which they are pushed. If the stack is empty, then it is said to be an Underflow condition.
2.s used to return the count of elements that are present inside the stack.
3.Block Delimiters are example 3

A
  1. .size
    1. begin/end, parenthesis, braces
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

1.a linear data structure that follows the First-In-First-Out (FIFO) principle. It operates like a line where elements are added at one end (rear) and removed from the other end (front).
2.adds an elem in end/rear of queue
3. removes and returns the element

4.

A
  1. queu (ex one way exits
    Queue of ticket
    Printing queue
    )
  2. enqueu(insert
  3. dequeu (delete)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

appplication of stacks, notation

  1. a + B , between operand
  2. before operand, +AB
  3. after operand, AB+
  4. after all charc from infix exper, POP any remaining OPERATORYS in the stack to the postfix operators
A
  1. INFIX NNOTATION
  2. PREFIX NOTATION
  3. postfix notation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

1 linear data structure that consists of a series of nodes connected by pointers
2. collect of node contains a** data field and a reference** (link) to the
next node in the sequence.
● Navigation is forward only

  1. this holds actual value /data w the node
  2. Stores the memory address of the next node
  3. ead and Tail: The linked list is accessed through the head node, which points to the first node in the list. The last node in the list points to NULL or nullptr, indicating the end of the list. This node is known as the tail node.
    we. prefer linked list over arrays is due to ease of insertion and deletion in linked list
A
  1. Linke dlist
  2. Single linked list
  3. Node
  4. Next Pointer/reference
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. here we discuss the amount of resources that an algorithm needs to execute, or more precisely, its efficiency.
  2. Input case, best case sa una (1-99=1)
  3. input case, most common
  4. overall anyslis
A
  1. Comutational Complexity
  2. worst case (kuha dulo, 99
  3. Average anyslis, in between or /2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. this notation is used 2 repre complexities of algo
  2. Bid O is also?
  3. this identifies the data being requested by the user list
  4. this is the most basic algorithm & 2
  5. list beging n continues untol d iterm is found/searched
A
  1. asymptotic notation
  2. Big Order, 1-this drops constant facorts, 2 lower orderterns

3/ Search key
4. Sequential Seach / linearsearch

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