Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Test by Bikram | Algorithms | Test 2 | Question: 25
Bikram
asked
in
Algorithms
May 26, 2017
edited
Aug 20, 2019
by
Counsellor
297
views
0
votes
0
votes
Let $T$ be a rooted ternary tree where each internal node of $T$ has a maximum of $3$ children. If root is at depth $0$, then maximum total number of vertices $T$ can have with depth $3$ is ______.
tbb-algorithms-2
numerical-answers
Bikram
asked
in
Algorithms
May 26, 2017
edited
Aug 20, 2019
by
Counsellor
by
Bikram
297
views
answer
comment
Follow
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
3
votes
Best answer
For the tree to have maximum total no of vertices, all nodes must have 3 children
So total no of nodes for depth 3 = 3^0 + 3^1 + 3^2 + 3^3 = 40
shraddha priya
answered
May 31, 2017
selected
May 31, 2017
by
Bikram
by
shraddha priya
comment
Follow
share this
1 comment
by
commenter commenter
commented
Dec 5, 2019
reply
Follow
share this
Maximum number of nodes with depth 3 are 3^3. So answer should be 27
1
1
Please
log in
or
register
to add a comment.
Answer:
40
← Previous
Next →
← Previous in category
Next in category →
Related questions
2
votes
2
votes
1
answer
1
Bikram
asked
in
Algorithms
May 26, 2017
573
views
Test by Bikram | Algorithms | Test 2 | Question: 29
The given input sequence is $\{ 111, 333 , 243, 199, 234, 279, 119 \}$ and the hash table is of size $10$ with hash function $h(k) = k \mod 10$. When hash table uses quadratic probing with $h'(k)= h(k) + c_1 * i + c_2 * i^2, c_1 = 0, c_2 = 1$, the total number of collisions happening while mapping the given input sequence are __________.
Bikram
asked
in
Algorithms
May 26, 2017
by
Bikram
573
views
tbb-algorithms-2
numerical-answers
algorithms
hashing
quadratic-probing
2
votes
2
votes
2
answers
2
Bikram
asked
in
Algorithms
May 26, 2017
356
views
Test by Bikram | Algorithms | Test 2 | Question: 28
Assume Dijkstra's Algorithm is used to find the shortest paths from node G in the above graph. The total number of edges which are not included in any of the shortest paths from node G are _________.
Bikram
asked
in
Algorithms
May 26, 2017
by
Bikram
356
views
tbb-algorithms-2
numerical-answers
1
vote
1
vote
2
answers
3
Bikram
asked
in
Algorithms
May 26, 2017
475
views
Test by Bikram | Algorithms | Test 2 | Question: 27
The total number of LCS (Longest Common Subsequences) of $P = abcd123$ and $Q= badc321$ that can be formed are ______.
Bikram
asked
in
Algorithms
May 26, 2017
by
Bikram
475
views
tbb-algorithms-2
numerical-answers
0
votes
0
votes
1
answer
4
Bikram
asked
in
Algorithms
May 26, 2017
310
views
Test by Bikram | Algorithms | Test 2 | Question: 26
Consider the following instance of the knapsack problem : ... above weights and benefits of items, if we need an optimal solution of fractional knapsack problem, the value of maximum benefit will be ______.
Bikram
asked
in
Algorithms
May 26, 2017
by
Bikram
310
views
tbb-algorithms-2
numerical-answers
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy