Flat 50% off on all training & certification courses. Limited time offer Explore courses

Use these filters to find papers

  Question
0

Write a program that create a linked list consisting of nodes of the following struct type and searches the record of a student whose roll_number is given by the user. 



This question has 0 answers so far.
0

Define RED-BLACK trees. Consider the red-black tree shown below and insert the item 50 into the tree and write the final red-black tree. 

                                                         

This question has 0 answers so far.
0

Obtain the optimal binary search tree for the following items and associated probability 


This question has 0 answers so far.
0

Construct an AVL tree by inserting the elements MAR, MAY, NOV, AUG, APRIL, JAN,DEC, JULY, FEB, JUNE, OCT, SEPT. 

This question has 0 answers so far.
0

Obtain the shortest(x) and weight(x) for each node in the following binary trees and identify which is height-based leftist tree and which is weight-based leftist tree.

                                            

This question has 0 answers so far.
0

Explain the activities to be performed to delete a node from a binary tree and write C-function to delete an item from the tree. 

This question has 0 answers so far.
0

Suppose the following list of number is inserted in order into an empty binary search tree(BST) 70 80 60 65 50 45 55, 

i) Construct the binary search tree

ii) Find in order, pre-order and pos-order traversal of BST created

iii) is the BST constructed at AVL tree? State reasons for your claim. Further if your answer is negative balance the tree so that it becomes an AVL tree. 

This question has 0 answers so far.
0

List various types of threaded binary trees. Explain in-threaded binary tree.

This question has 0 answers so far.
0

Define max-heap and min-heap. How will you represent a max-heapras an array? Write an algorithm to insert an element to a max-heap. Create a max-heap 100 200-10-30-60 80 90 300.

This question has 0 answers so far.
0

Write a C-function to insert an item into a binary tree based on direction.

This question has 0 answers so far.
0

Explain how to reverse and invert a given singly linked list with an example and write its C-function.

This question has 0 answers so far.
0

List out the difference between singly linked list and doubly linked list. What are the advantages of circular list?


This question has 0 answers so far.
0

Write a recursive function to print the permutation of a string (ABC) passed to it as an argument.

This question has 0 answers so far.
0

What is the disadvantage of queue which is implemented using array and how to overcome it? 

This question has 0 answers so far.
0

Write a program to check whether a given string is palindrome or not using stack.

This question has 0 answers so far.
0

Differentiate between stack and queue. How are they related to LIFO and FIFO concept?

This question has 0 answers so far.
0

Write an algorithm to evaluate a postfix expression. Use a stack to evaluate the following postfix arithmetic expression. Show the changing status of the stack in tabular form.

(AB + C-BA+CS-)for given A = 1, B = 2, C = 3. 

This question has 0 answers so far.
0

With the help of an example, explain sparse matrix. How the sparse matrix is represented in memory. Design the algorithm to transpose a given matrix represented as triplos in a 1-D array 

This question has 0 answers so far.
0

Design algorithm to add two polynomials using ADT polynomial.

This question has 0 answers so far.
0

Describe unions used in C. How is it different from structures?

This question has 0 answers so far.
0

Explain how address calculation is done in row major ordering for a 2- dimensional array,Also generalize for n-dimension

This question has 0 answers so far.
0

Explain how memory can be dynamically allocated using realloc( ).


This question has 0 answers so far.
0

Obtain the step count for the C-function to add two matrices of M x N size using counting method and tabular method. 



This question has 0 answers so far.
0

What is the purpose of using free( )? With an example explain the problem that occur when free() is not used.


This question has 0 answers so far.