Skip to content

// Dr. A.P.J. Abdul Kalam Technical University, Uttar Pradesh / 2024

AKTU B.Tech — Data Structure (BCS301), Semester 3, 2024

Data Structure · BCS301 · B.Tech Computer Science and Engineering · Semester 3

Work through the questions

22 questions

No verified answers are available for this paper.

  1. Question 1(a)

    Descriptive2 marks

    Data Structures

    What are the various asymptotic notations?

    No verified answer or solution is available for this question.

  2. Question 1(b)

    Descriptive2 marks

    Data Structures

    Why are parentheses needed to specify the order of operations in infix expressions but not in postfix operations?

    No verified answer or solution is available for this question.

  3. Question 1(c)

    Descriptive2 marks

    Data Structures

    How the choice of pivot element effects the running time of quick sort algorithm?

    No verified answer or solution is available for this question.

  4. Question 1(d)

    Descriptive2 marks

    Data Structures

    What are the 2 different forms of hashing?

    No verified answer or solution is available for this question.

  5. Question 1(e)

    Descriptive2 marks

    Data Structures

    What is the significance of binary tree in Huffman algorithm?

    No verified answer or solution is available for this question.

  6. Question 1(f)

    Descriptive2 marks

    Data Structures

    What is the number of edges in a regular graph of degree d and n vertices?

    No verified answer or solution is available for this question.

  7. Question 1(g)

    Descriptive2 marks

    Data Structures

    Write an algorithm to obtain the connected components of a graph.

    No verified answer or solution is available for this question.

  8. Question 2(a)

    Descriptive7 marks

    Data Structures

    Write a Pseudo code that will concatenate two linked lists. Function should have two parameters, pointers to the beginning of the lists and the function should link second list at the end of the first list.

    No verified answer or solution is available for this question.

  9. Question 2(b)

    Descriptive7 marks

    Data Structures

    Write an algorithm to convert a valid arithmetic infix expression into an equivalent postfix expression. Trace your algorithm for following expression: A+B*C-D/F

    No verified answer or solution is available for this question.

  10. Question 2(c)

    Descriptive7 marks

    Data Structures

    What are the disadvantages of linear probing in hashing? Discuss how quadratic probing can be used to solve some of these problems.

    No verified answer or solution is available for this question.

  11. Question 2(d)

    Descriptive7 marks

    Data Structures

    Write C function for non-recursive post order traversal.

    No verified answer or solution is available for this question.

  12. Question 2(e)

    Descriptive7 marks

    Data Structures

    Consider the following graph and using Dijkstra Algorithm find the shortest path.

    Official figure for question 2(e)

    No verified answer or solution is available for this question.

  13. Question 3(a)

    Descriptive7 marks

    Data Structures

    Each element of an array Data [20][50] requires 4 bytes of storage. Base address of Data is 2000. Determine the location of Data [10][10] when the array is stored as: (i) Row major (ii) Column major

    No verified answer or solution is available for this question.

  14. Question 3(b)

    Descriptive7 marks

    Data Structures

    How will you create link list representation of a polynomial. Explain it with the suitable example.

    No verified answer or solution is available for this question.

  15. Question 4(a)

    Descriptive7 marks

    Data Structures

    Write an algorithm to evaluate an arithmetic expression using stack and show how the expression 3*(5-3) will be evaluated.

    No verified answer or solution is available for this question.

  16. Question 4(b)

    Descriptive7 marks

    Data Structures

    A double ended Queue (deque) is a linear list in which additions may be made at either end. Obtain a data representation mapping a deque into one dimensional array. Write C function to add and delete elements from either end of deque.

    No verified answer or solution is available for this question.

  17. Question 5(a)

    Descriptive7 marks

    Data Structures

    Write a C program for sorting 100 integer numbers using selection sort procedure. Discuss the worst-case time complexity of the algorithms.

    No verified answer or solution is available for this question.

  18. Question 5(b)

    Descriptive7 marks

    Data Structures

    Write a program in C language to implement binary search algorithm. Also discuss the average behavior of the algorithm.

    No verified answer or solution is available for this question.

  19. Question 6(a)

    Descriptive7 marks

    Data Structures

    If E and I denotes the external and internal path length of a binary tree having n internal nodes then show that E=I+2n.

    No verified answer or solution is available for this question.

  20. Question 6(b)

    Descriptive7 marks

    Data Structures

    Suppose character a, b, c, d, e, f has probabilities 0.07, 0.09, 0.12, 0.22, 0.23, 0.27 respectively. Find an optimal Huffman code and draw the Huffman tree.

    No verified answer or solution is available for this question.

  21. Question 7(a)

    Descriptive7 marks

    Data Structures

    Find the minimum spanning tree using Prim's algorithm for the graph shown below.

    Official figure for question 7(a)

    No verified answer or solution is available for this question.

  22. Question 7(b)

    Descriptive7 marks

    Data Structures

    Write a program in C language to compute the indegree and outdegree of every vertex of a directed graph when the graph is represented by an adjacency matrix.

    No verified answer or solution is available for this question.

Keep preparing

Revisit another year or explore a different paper in the library.

More from this exam