Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged data-structures
2
votes
1
answer
1321
Linked list problem
thor
2.0k
views
thor
asked
Nov 18, 2016
DS
linked-list
data-structures
+
–
0
votes
2
answers
1322
Balace Factor Of AVL TREE
Is this an example of AVL Tree ? Here Number of Left Child of Root =4 Number of Right Child of Root =2 Hence Balacing Factor is 2 Hence Not AVL Tree. If so please show me an exaple of AVL Tree with 7 nodes and Height 3. (Height of a tree with single node is 0)
Is this an example of AVL Tree ? Here Number of Left Child of Root =4 Number of Right Child of Root =2 Hence Balacing Factor is 2 Hence Not AVL Tree. If so please show ...
PEKKA
685
views
PEKKA
asked
Nov 16, 2016
Programming in C
avl-tree
data-structures
+
–
18
votes
3
answers
1323
GATE CSE 1987 | Question: 7b
Construct a binary tree whose preorder traversal is $K\;L\;N\;M\;P\;R\;Q\;S\;T$ and inorder traversal is $N\;L\;K\;P\;R\;M\;S\;Q\;T$
Construct a binary tree whose preorder traversal is$K\;L\;N\;M\;P\;R\;Q\;S\;T$and inorder traversal is$N\;L\;K\;P\;R\;M\;S\;Q\;T$
makhdoom ghaya
5.2k
views
makhdoom ghaya
asked
Nov 14, 2016
DS
gate1987
data-structures
binary-tree
descriptive
+
–
17
votes
3
answers
1324
GATE CSE 1987 | Question: 6a
A list of $n$ elements is commonly written as a sequence of $n$ elements enclosed in a pair of square brackets. For example. $[10, 20, 30]$ is a list of three elements and $[]$ is a nil list. Five functions are defined below: $car (l)$ returns the first element of its argument ... $f ([32, 16, 8], [9, 11, 12])$ $g ([5, 1, 8, 9])$
A list of $n$ elements is commonly written as a sequence of $n$ elements enclosed in a pair of square brackets. For example. $[10, 20, 30]$ is a list of three elements an...
makhdoom ghaya
2.9k
views
makhdoom ghaya
asked
Nov 14, 2016
DS
gate1987
data-structures
linked-list
descriptive
+
–
1
votes
1
answer
1325
connected components
vaishali jhalani
684
views
vaishali jhalani
asked
Nov 13, 2016
Programming in C
graph-theory
data-structures
+
–
1
votes
1
answer
1326
BFS traversal
1.{d,c} 2.{d,b} 3.{e,b} 4.{e,f}
1.{d,c}2.{d,b}3.{e,b}4.{e,f}
vaishali jhalani
711
views
vaishali jhalani
asked
Nov 13, 2016
Programming in C
data-structures
breadth-first-search
+
–
1
votes
1
answer
1327
New Gradience
Below is the pic of the AVL tree for more clarity. I think answer D is right . I have checked myself by inserting nodes to make it same tree here.https://www.cs.usfca.edu/~galles/visualization/AVLtree.html. Pls someone let me know if answer is incorrect or not and if it is, pls provide explanation.
Below is the pic of the AVL tree for more clarity.I think answer D is right . I have checked myself by inserting nodes to make it same tree here.https://www.cs.usfca.edu/...
mohit chawla
820
views
mohit chawla
asked
Nov 13, 2016
Programming in C
avl-tree
data-structures
+
–
0
votes
1
answer
1328
Gateforum
Number of comparision in searching an element in a binary search tree is ?
Number of comparision in searching an element in a binary search tree is ?
Kashyap Avinash
367
views
Kashyap Avinash
asked
Nov 10, 2016
DS
data-structures
binary-search-tree
time-complexity
gateforum-test-series
+
–
1
votes
0
answers
1329
Postfix and Prefix
Conver the following infix to Postfix and Prefix $log ( 3 ! )^ {log4} *log log ((6/7)*4+x)!$ $ sin 2x cos (3x+4) $ Please use stack method to solve . Diagram would be appreciated
Conver the following infix to Postfix and Prefix $log ( 3 ! )^ {log4} *log log ((6/7)*4+x)!$$ sin 2x cos (3x+4) $ Please use stack method to solve . Diagram would be app...
PEKKA
1.3k
views
PEKKA
asked
Nov 10, 2016
DS
data-structures
infix-prefix
+
–
0
votes
1
answer
1330
What is an example of abstract and concrete data types?
Wikipedia says: https://en.wikipedia.org/wiki/Abstract_data_type#Examples integers are an ADT, defined as the values , −2, −1, 0, 1, 2, , and by the operations of addition, subtraction, multiplication, and division ... abstract, can't they? can anyone please provide a simple definition of abstract and conceret data types with example!
Wikipedia says:https://en.wikipedia.org/wiki/Abstract_data_type#Examples integers are an ADT, defined as the values …, −2, −1, 0, 1, 2, …, and by the operations o...
sh!va
8.9k
views
sh!va
asked
Nov 10, 2016
Unknown Category
data-structures
+
–
0
votes
1
answer
1331
Hashing
Consider a Hash table containing ‘n’ keys and ‘k’ slots. Each key will hash into a slot in the given Hash table. (Assume collisions are resolved by chaining). 1)What is the probability that the first slot of hash table will be empty?
Consider a Hash table containing ‘n’ keys and ‘k’ slots. Each key will hash into a slot in the given Hash table. (Assume collisions are resolved by chaining).1)Wh...
Rohan Mundhey
694
views
Rohan Mundhey
asked
Nov 9, 2016
Algorithms
hashing
probability
data-structures
+
–
19
votes
3
answers
1332
GATE CSE 1987 | Question: 2g
State whether the following statements are TRUE or FALSE: If the number of leaves in a tree is not a power of $2,$ then the tree is not a binary tree.
State whether the following statements are TRUE or FALSE:If the number of leaves in a tree is not a power of $2,$ then the tree is not a binary tree.
makhdoom ghaya
4.9k
views
makhdoom ghaya
asked
Nov 9, 2016
DS
gate1987
data-structures
binary-tree
true-false
+
–
31
votes
5
answers
1333
GATE CSE 1987 | Question: 2c
State whether the following statements are TRUE or FALSE: It is possible to construct a binary tree uniquely whose pre-order and post-order traversals are given?
State whether the following statements are TRUE or FALSE:It is possible to construct a binary tree uniquely whose pre-order and post-order traversals are given?
makhdoom ghaya
6.6k
views
makhdoom ghaya
asked
Nov 9, 2016
DS
gate1987
binary-tree
data-structures
normal
true-false
+
–
23
votes
3
answers
1334
GATE CSE 1987 | Question: 1-xv
In a circular linked list organization, insertion of a record involves modification of One pointer. Two pointers. Multiple pointers. No pointer.
In a circular linked list organization, insertion of a record involves modification ofOne pointer.Two pointers.Multiple pointers.No pointer.
makhdoom ghaya
14.4k
views
makhdoom ghaya
asked
Nov 8, 2016
DS
gate1987
data-structures
linked-list
+
–
1
votes
1
answer
1335
MadeEasy Test Series: Programming & DS - Hashing
Hash table with 6 slots No of keys=8. Collisions are resolved by chaining. Expected no of non empty slots?
Hash table with 6 slotsNo of keys=8.Collisions are resolved by chaining.Expected no of non empty slots?
akashsheoran
667
views
akashsheoran
asked
Nov 6, 2016
DS
made-easy-test-series
data-structures
hashing
+
–
0
votes
0
answers
1336
Ds+linked list
I am not getting how unsigned is used and how is it working???
I am not getting how unsigned is used and how is it working???
Rahul Jain25
505
views
Rahul Jain25
asked
Nov 5, 2016
Programming in C
linked-list
algorithms
programming
data-structures
+
–
1
votes
1
answer
1337
Which of the following are true ?
Rohan Mundhey
1.4k
views
Rohan Mundhey
asked
Nov 5, 2016
DS
binary-tree
data-structures
normal
+
–
0
votes
0
answers
1338
hashing
vaishali jhalani
238
views
vaishali jhalani
asked
Nov 5, 2016
Algorithms
hashing
data-structures
algorithms
+
–
16
votes
2
answers
1339
Hashing
Using open addressing with linear probing, we sequentially insert three distinct keys k1, k2 and k3 into a hash table of size m. Assuming simple uniform hashing, what is the probability that we will need three probes, when inserting the third key, k3? 3/m 2/m2 3/m2 2/m Please explain the solution.
Using open addressing with linear probing, we sequentially insert three distinct keys k1, k2 and k3 into a hash table of size m. Assuming simple uniform hashing, what is ...
agoh
3.3k
views
agoh
asked
Nov 2, 2016
Algorithms
hashing
data-structures
algorithms
uniform-hashing
+
–
2
votes
1
answer
1340
binary tree
The height of a binary tree having $`\text{i’}$ nodes at level $`\text{i’}$ considering root to be at level $1$ is __________, where $`n\text{’}$ is the total no. of nodes in the tree. $O(\log n)$ $(O(n)$ $O(\sqrt{n})$ $O(n^{2})$
The height of a binary tree having $ \text{i’}$ nodes at level $ \text{i’}$ considering root to be at level $1$ is __________, where $ n\text{’}$ is the total no. o...
Shubham Pandey 2
607
views
Shubham Pandey 2
asked
Oct 26, 2016
DS
data-structures
binary-tree
+
–
4
votes
2
answers
1341
Heaps
jenny101
1.1k
views
jenny101
asked
Oct 26, 2016
DS
data-structures
binary-heap
+
–
7
votes
2
answers
1342
Queue
A queue is a particular kind of abstract data type. Enqueue and Dequeue makes the queue FIFO data structure. There are several efficient implementations of FIFO queues. An efficient implementation is one which can perform the operations of enququeing and dequeueing in O(1) time. The best choice is : a] DLL c] SLL b] Dynamic Array d] any one of these
A queue is a particular kind of abstract data type. Enqueue and Dequeue makes the queue FIFO data structure. There are several efficient implementations of FIFO queues. A...
KISHALAY DAS
1.6k
views
KISHALAY DAS
asked
Oct 22, 2016
Programming in C
data-structures
queue
+
–
3
votes
1
answer
1343
How to find the structure of Tree with given Pre Order and Post Order
how can we find unique structure of a tree with given pre order and post order traversal . Please explain in detail with an example ( please give an example with number of nodes > 5 for more understanding ) References ... admission Test there had a question from this Topic . Could some one help ? Is it Really not possible ?
how can we find unique structure of a tree with given pre order and post order traversal . Please explain in detail with an example ( please give an example with number o...
pC
1.9k
views
pC
asked
Oct 21, 2016
DS
data-structures
tree-traversal
+
–
2
votes
1
answer
1344
Madeeasy Test Series
consider a complete binary tree 'T' with key of root node be 'P'. It is given that the left and right subtree of 'P' satisfies the min-heap property. What is the time taken to convert the given tree 'T' to max-heap? a. O(log n) b. O(n) c. O(nlog n) d. O(n2)
consider a complete binary tree 'T' with key of root node be 'P'. It is given that the left and right subtree of 'P' satisfies the min-heap property. What is the time tak...
gautamcse27
372
views
gautamcse27
asked
Oct 20, 2016
Programming in C
data-structures
+
–
2
votes
1
answer
1345
BST creation
what is the time complexity in creating a BInary search tree from an unsorted array??
what is the time complexity in creating a BInary search tree from an unsorted array??
Akriti sood
2.0k
views
Akriti sood
asked
Oct 16, 2016
DS
binary-search-tree
data-structures
time-complexity
+
–
0
votes
1
answer
1346
find
A one dimensional array A has indices 1...75.Each element is a string and takes three memory words .The array is stored at location 1120 decimal .The starting address of A[49] is a)1267 b)1134 c)1264 d)1169
A one dimensional array A has indices 1...75.Each element is a string and takes three memory words .The array is stored at location 1120 decimal .The starting address of ...
neha singh
444
views
neha singh
asked
Oct 11, 2016
Algorithms
data-structures
array
+
–
4
votes
1
answer
1347
GATE Overflow | Data Structures | Test 1 | Question: 30
In a Network where bytes are continuously being transferred, it is required to identify the most frequently transferred byte. What would be an appropriate data structure for finding this? Linked List Array Dynamically growing Array Set
In a Network where bytes are continuously being transferred, it is required to identify the most frequently transferred byte. What would be an appropriate data structure ...
Arjun
807
views
Arjun
asked
Oct 10, 2016
DS
go-ds-1
data-structures
+
–
1
votes
2
answers
1348
GATE Overflow | Data Structures | Test 1 | Question: 29
Which of the following is false? Arrays are better than linked lists for sorting due to better data locality. Asymptotic time complxity for FindMax is same on an unsorted array as that on a singly linked list. A doubly linked list ... as of a singly linked list. Given a fixed maximum size, a circular queue is preferrable to a normal queue
Which of the following is false?Arrays are better than linked lists for sorting due to better data locality.Asymptotic time complxity for FindMax is same on an unsorted a...
Arjun
894
views
Arjun
asked
Oct 10, 2016
DS
go-ds-1
data-structures
array
queue
+
–
2
votes
2
answers
1349
GATE Overflow | Data Structures | Test 1 | Question: 28
What would be an appropraite data structure to represent family hierarchy where each node is an individual and there in no requirement to keep "married to" relationship? Binary Tree n-ary Tree Graph Linked List
What would be an appropraite data structure to represent family hierarchy where each node is an individual and there in no requirement to keep "married to" relationship?B...
Arjun
770
views
Arjun
asked
Oct 10, 2016
DS
go-ds-1
data-structures
+
–
0
votes
3
answers
1350
GATE Overflow | Data Structures | Test 1 | Question: 27
Consider a complete graph of 10 vertices. The minimum no. of edge removals required to make the graph disconnected is ______
Consider a complete graph of 10 vertices. The minimum no. of edge removals required to make the graph disconnected is ______
Arjun
672
views
Arjun
asked
Oct 10, 2016
DS
go-ds-1
data-structures
graph-theory
numerical-answers
+
–
Page:
« prev
1
...
40
41
42
43
44
45
46
47
48
49
50
...
60
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register