What is the time complexity of adding three matrices of size NXN cell-by-cell?
Latest Answer: The number of elements to be added is calculated in this way;Total Number of Elements to be added = No. of pairs of matrix * ( no. of elements in each matrix)for 3 matrix; it would come to ; total number of operations required = (n*n) * 2 ( as there ...
To represent hierarchical relationship between elements, which data structure is not suitable?a. Dequeb. Priorityc. Treed. All of above
Latest Answer: Only tree has the notion of parent child relationship, other data structures listed here do not have that. ...
Which of the following data structure is linear type?a. Stringsb. Listsc. Queuesd. All of above
Identify the data structure which allows deletions at both ends of the list but insertion at only one end.a. Input-restricted dequeb. Output-restricted dequec. Priority queuesd. None of above
Which data structure allows deleting data elements from front and inserting at rear?a. Stacksb. Queuesc. Dequesd. Binary search tree
Write a program of Linked List using pointers.
What is forest data structure? How is it useful?
Which data structure is used for inserting and deleting dynamically?
Latest Answer: Dynamic insertion and deletion works well with Lists (like a doubly linked list)(also mentioned in the previous answer)The problem gets incremented this way;Insertion at a particular location; should be started first with a search for the the right ...
How a value can be accessed through an address?How pointers can be used a funtions?
Latest Answer: A value can be accesed through its address by use of pointers..Assigning any element as int x=10;int *p=&x;assigns the address of 'x' to pointer 'p'A pointer can be used as a function by using it as int (*p) (int, int){/// Function ...
Make a middle node of doubly link list to the top of the list.
Latest Answer: node *n1,*n2;n1 = n2 = head;while((n2->next) && (n2->next->next)){ n1 = n1->next; n2 = n2->next->next;]// n1 points to the middle nown1->prev->next = n1->next;n1->next->prev ...
View page [1] 2 3 4 5 6 7 8 9 10 Next >>

Go Top