暗記メーカー
ログイン
Linked list/ Trees and graphs
  • iam noone

  • 問題数 51 • 3/31/2024

    記憶度

    完璧

    7

    覚えた

    20

    うろ覚え

    0

    苦手

    0

    未解答

    0

    アカウント登録して、解答結果を保存しよう

    問題一覧

  • 1

    If each pair of nodes or vertices in a graph G=(V, E) has only one edge, it is a simple graph. As a result, there is just one edge linking two vertices, depicting one-to-one interactions between two elements.

    Simple graph

  • 2

    there are two types of skewed binary tree: left-skewed binary tree and right-skewed binary tree.

    True

  • 3

    represents a path between two vertices or a line between two vertices.

    edge

  • 4

    Each node of the graph is represented as

    Vertex

  • 5

    is the total number of branches of that node.

    Degree of a Node

  • 6

    It is the topmost node of a tree.

    Root

  • 7

    The last nodes of each path are called “___________ that do not contain a link/pointer to child nodes.

    leaf nodes or external nodes

  • 8

    Graph is a collection of nodes and edges in which nodes are connected with edges.

    True

  • 9

    is a special type of binary tree in which every parent node/internal node has either two or no children

    Full binary tree

  • 10

    is represented using a matrix of size total number of vertices by a total number of edges.

    Incidence Matrix

  • 11

    is a collection of vertices and arcs in which vertices are connected with arcs.

    Graph

  • 12

    is a vertex-based method for determining the shortest path in a graph. It employs a queue data structure, where first in, it follows first out. , it visits one vertex and marks it at the time, after which it sees and queues its neighbors.

    Breadth First or Level Order Traversal (BFS)

  • 13

    A collection of disjoint trees is called a forest.

    True

  • 14

    the number of edges from the node to the deepest leaf (ie. the longest path from the node to a leaf node).

    Height of a Node

  • 15

    is represented using a matrix of size total number of vertices by a total number of vertices.

    Adjacency matrix

  • 16

    If a graph G= (V, E) contains a self-loop besides other edges.

    Pseudo Graph

  • 17

    A tree data structure in which each parent node can have at most two children.

    Binary Tree

  • 18

    Algorithm Post-order (tree)

    Step 1 − Recursively traverse left subtree. Step 2 − Recursively traverse right subtree. Step 3 − Visit root node.

  • 19

    It's a reworked version of a trivial graph. If several vertices but no edges connect them, a graph G= (V, E)

    Null graph

  • 20

    A graph G= (V, E) it contains only a single vertex and no edges.

    Trivial Graph

  • 21

    is a bidirectional edge. If there is undirected edge between vertices A and B then edge (A , B) is equal to edge (B , A).

    Undirected Edge

  • 22

    is a method of traversing or searching data structures composed of trees or graphs. Three orders execute tree traversal under this depth-first search algorithm. (a) In-order (Left, Root, Right): 4 2 5 1 3 (b) Pre-order (Root, Left, Right): 1 2 4 5 3 (c) Post-order (Left, Right, Root): 4 5 2 3 1

    Depth First Search DFS

  • 23

    is a non-linear data structure. It contains a set of points known as nodes (or vertices) and a set of links known as edges (or Arcs).

    Graph

  • 24

    A self-balancing binary search tree in which each node maintains extra information called a balance factor whose value is either -1, 0 or +1.

    AVL tree

  • 25

    It is a type of binary tree in which the difference between the height of the left and the right subtree for each node is either 0 or 1.

    Balanced Binary Tree

  • 26

    is a unidirectional edge. If there is directed edge between vertices A and B then edge (A , B) is not equal to edge (B , A).

    Directed Edge

  • 27

    If a graph G= (V, E) is also a simple graph. Using the edges, with n number of vertices must be connected. It's also known as a full graph because each vertex's degree must be n-1.

    Complete graph

  • 28

    If there are numerous edges between a pair of vertices in a graph G= (V, E), the graph is referred to as a multigraph. There are no self-loops.

    multi graph

  • 29

    A data structure that quickly allows us to maintain a sorted list of numbers. It is called a binary tree because each tree node has a maximum of two children.

    Binary search tree

  • 30

    is also one of the data structures that represent hierarchical data. is a nonlinear hierarchical data structure that consists of nodes connected by edges.

    Tree

  • 31

    Each node of a binary tree consists of three items: data item address of left child address of right child

    True

  • 32

    is the number of edges from the root to the node.

    Depth of a Node

  • 33

    a type of binary tree in which every internal node has exactly two child nodes and all the leaf nodes are at the same level.

    Perfect binary tree

  • 34

    Algorithm In-order (tree)

    Step 1 − Recursively traverse left subtree. Step 2 − Visit root node. Step 3 − Recursively traverse right subtree.

  • 35

    is just like a full binary tree, but with two major differences

    Complete binary tree

  • 36

    is the tree having a single child either left or right.

    Degenerate or Pathological Tree

  • 37

    Each node of a binary tree consists of three items: data item address of left child address of right child

    true

  • 38

    AVL tree got its name after its inventor Georgy Adelson-Velsky and Landis.

    True

  • 39

    The interconnected objects are represented by points termed as vertices, and the links that connect the vertices are called _____

    edges

  • 40

    is the height of the root node or the depth of the deepest node.

    Height of a Tree

  • 41

    Algorithm Pre-order (tree)

    Step 1 − Visit root node. Step 2 − Recursively traverse left subtree. Step 3 − Recursively traverse right subtree.

  • 42

    The graph G=(V, E) is called a _______ if the number of vertices and edges in the graph is interminable.

    Infinite graph

  • 43

    is an edge with value (cost) on it.

    Weighted Edge

  • 44

    that refers to the process of visiting, verifying, and updating each node in a tree data structure just once. The order in which you examine the nodes of the tree is used to classify these traversals. 1. DFS (Depth First Search) 2. BFS (Breadth First Search)

    tree Traversals

  • 45

    The node having at least a child node is called an _______.

    internal node

  • 46

    an entity that contains a key or value and pointers to its child.

    Node

  • 47

    Two node or vertices are adjacent if they are connected to each other through an edge.

    Adjecency

  • 48

    A special type of self-balancing search tree in which each node can contain more than one key and can have more than two children. It is a generalized form of the binary search tree. It is also known as a height-balanced m-way tree.

    B-Tree

  • 49

    is a pathological/degenerate tree in which the tree is either dominated by the left nodes or the right nodes.

    Skewed Binary Tree

  • 50

    represents a sequence of edges between the two vertices

    Path

  • 51

    It is the link between any two nodes.

    Edge