Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Write down any four applications of the queues.
Ans.
Application of Queue is given below
(i) Queue is used in time the sharing system in which the programs with the same priority form a queue while waiting to be executed.
(ii) Queue is used for completing the level order traversal of a binary tree and for performing breadth first search at a graph.
(iii) It is also used in simulation related problem.
(iv) When the jobs are submitted to the networked printer, they are arranged in order of arrival, ie. Jobs are smartly arranged in a queue.
Write an algorithm to test whether a Binary Tree is a Binary Search Tree. The algorithm to test whether a Binary tree is as Binary Search tree is as follows: bstree(*tree) {
to find binary value of an integer
Which are the two standard ways of traversing a graph? i. The depth-first traversal ii. The breadth-first traversal
What do you understand by term structured programming? Explain the structured programming as well. Ans. S tructured Programming is expla
Ans: A procedure to reverse the singly linked list: reverse(struct node **st) { struct node *p, *q, *r; p = *st; q = NULL; while(p != NULL) { r =q;
Example: (Single rotation into AVL tree, while a new node is inserted into the AVL tree (LL Rotation)) Figure: LL Rotation The rectangles marked A, B & C are trees
Q. Explain that how do we implement two stacks in one array A[1..n] in such a way that neither the stack overflows unless the total number of elements in both stacks together is n.
algorithm for multiplication of two sparse matrices using linked lists..
perform the following length operation LENGTH("welcome to ICA")=
what is an algorithms
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd