Question 1
What is the treewidth of the following graph?
1
2
3
4

The IIT Madras BS Advanced Algorithms (Advanced Algorithms) Quiz 1 paper sat on 27 Oct 2024, in the September 2024 term: 28 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
What is the treewidth of the following graph?
1
2
3
4
Correct answer
3
Correct answer
Consider the following graph, which is a path on five vertices:
Correct answer
Consider the following instance of Maximum Weight Independent Set problem:
Correct answer
Below are the observed proposals from the traditional male propose-and-reject algorithm. After the algorithm terminates, only B is married to the man she likes the most. Also, it is known that A has the same preferences as B and every man likes C better than A. Reconstruct the complete preference lists of men and women in the given information.
| Round | Women | Men | Round | Women | Men |
|---|---|---|---|---|---|
| 1 | A | - | 5 | A | - |
| B | 1,2 | B | 4 | ||
| C | 3 | C | 2 | ||
| D | 4 | D | 1,3 | ||
| 2 | A | - | 6 | A | - |
| B | 1 | B | 3,4 | ||
| C | 2,3 | C | 2 | ||
| D | 4 | D | 1 | ||
| 3 | A | - | 7 | A | - |
| B | 1 | B | 3 | ||
| C | 2 | C | 2,4 | ||
| D | 3,4 | D | 1 | ||
| 4 | A | - | 8 | A | 2 |
| B | 1,4 | B | 3 | ||
| C | 2 | C | 4 | ||
| D | 3 | D | 1 |
Based on the above data, answer the given subquestions.
What is the preference ordering of man 1?
Correct answer
Below are the observed proposals from the traditional male propose-and-reject algorithm. After the algorithm terminates, only B is married to the man she likes the most. Also, it is known that A has the same preferences as B and every man likes C better than A. Reconstruct the complete preference lists of men and women in the given information.
| Round | Women | Men | Round | Women | Men |
|---|---|---|---|---|---|
| 1 | A | - | 5 | A | - |
| B | 1,2 | B | 4 | ||
| C | 3 | C | 2 | ||
| D | 4 | D | 1,3 | ||
| 2 | A | - | 6 | A | - |
| B | 1 | B | 3,4 | ||
| C | 2,3 | C | 2 | ||
| D | 4 | D | 1 | ||
| 3 | A | - | 7 | A | - |
| B | 1 | B | 3 | ||
| C | 2 | C | 2,4 | ||
| D | 3,4 | D | 1 | ||
| 4 | A | - | 8 | A | 2 |
| B | 1,4 | B | 3 | ||
| C | 2 | C | 4 | ||
| D | 3 | D | 1 |
Based on the above data, answer the given subquestions.
What is the preference ordering of man 2?
Correct answer
Below are the observed proposals from the traditional male propose-and-reject algorithm. After the algorithm terminates, only B is married to the man she likes the most. Also, it is known that A has the same preferences as B and every man likes C better than A. Reconstruct the complete preference lists of men and women in the given information.
| Round | Women | Men | Round | Women | Men |
|---|---|---|---|---|---|
| 1 | A | - | 5 | A | - |
| B | 1,2 | B | 4 | ||
| C | 3 | C | 2 | ||
| D | 4 | D | 1,3 | ||
| 2 | A | - | 6 | A | - |
| B | 1 | B | 3,4 | ||
| C | 2,3 | C | 2 | ||
| D | 4 | D | 1 | ||
| 3 | A | - | 7 | A | - |
| B | 1 | B | 3 | ||
| C | 2 | C | 2,4 | ||
| D | 3,4 | D | 1 | ||
| 4 | A | - | 8 | A | 2 |
| B | 1,4 | B | 3 | ||
| C | 2 | C | 4 | ||
| D | 3 | D | 1 |
Based on the above data, answer the given subquestions.
What is the preference ordering of man 3?
Correct answer
Below are the observed proposals from the traditional male propose-and-reject algorithm. After the algorithm terminates, only B is married to the man she likes the most. Also, it is known that A has the same preferences as B and every man likes C better than A. Reconstruct the complete preference lists of men and women in the given information.
| Round | Women | Men | Round | Women | Men |
|---|---|---|---|---|---|
| 1 | A | - | 5 | A | - |
| B | 1,2 | B | 4 | ||
| C | 3 | C | 2 | ||
| D | 4 | D | 1,3 | ||
| 2 | A | - | 6 | A | - |
| B | 1 | B | 3,4 | ||
| C | 2,3 | C | 2 | ||
| D | 4 | D | 1 | ||
| 3 | A | - | 7 | A | - |
| B | 1 | B | 3 | ||
| C | 2 | C | 2,4 | ||
| D | 3,4 | D | 1 | ||
| 4 | A | - | 8 | A | 2 |
| B | 1,4 | B | 3 | ||
| C | 2 | C | 4 | ||
| D | 3 | D | 1 |
Based on the above data, answer the given subquestions.
What is the preference ordering of man 4?
Correct answer
Below are the observed proposals from the traditional male propose-and-reject algorithm. After the algorithm terminates, only B is married to the man she likes the most. Also, it is known that A has the same preferences as B and every man likes C better than A. Reconstruct the complete preference lists of men and women in the given information.
| Round | Women | Men | Round | Women | Men |
|---|---|---|---|---|---|
| 1 | A | - | 5 | A | - |
| B | 1,2 | B | 4 | ||
| C | 3 | C | 2 | ||
| D | 4 | D | 1,3 | ||
| 2 | A | - | 6 | A | - |
| B | 1 | B | 3,4 | ||
| C | 2,3 | C | 2 | ||
| D | 4 | D | 1 | ||
| 3 | A | - | 7 | A | - |
| B | 1 | B | 3 | ||
| C | 2 | C | 2,4 | ||
| D | 3,4 | D | 1 | ||
| 4 | A | - | 8 | A | 2 |
| B | 1,4 | B | 3 | ||
| C | 2 | C | 4 | ||
| D | 3 | D | 1 |
Based on the above data, answer the given subquestions.
What is the preference ordering of woman A?
Correct answer
Below are the observed proposals from the traditional male propose-and-reject algorithm. After the algorithm terminates, only B is married to the man she likes the most. Also, it is known that A has the same preferences as B and every man likes C better than A. Reconstruct the complete preference lists of men and women in the given information.
| Round | Women | Men | Round | Women | Men |
|---|---|---|---|---|---|
| 1 | A | - | 5 | A | - |
| B | 1,2 | B | 4 | ||
| C | 3 | C | 2 | ||
| D | 4 | D | 1,3 | ||
| 2 | A | - | 6 | A | - |
| B | 1 | B | 3,4 | ||
| C | 2,3 | C | 2 | ||
| D | 4 | D | 1 | ||
| 3 | A | - | 7 | A | - |
| B | 1 | B | 3 | ||
| C | 2 | C | 2,4 | ||
| D | 3,4 | D | 1 | ||
| 4 | A | - | 8 | A | 2 |
| B | 1,4 | B | 3 | ||
| C | 2 | C | 4 | ||
| D | 3 | D | 1 |
Based on the above data, answer the given subquestions.
What is the preference ordering of woman B?
Correct answer
Below are the observed proposals from the traditional male propose-and-reject algorithm. After the algorithm terminates, only B is married to the man she likes the most. Also, it is known that A has the same preferences as B and every man likes C better than A. Reconstruct the complete preference lists of men and women in the given information.
| Round | Women | Men | Round | Women | Men |
|---|---|---|---|---|---|
| 1 | A | - | 5 | A | - |
| B | 1,2 | B | 4 | ||
| C | 3 | C | 2 | ||
| D | 4 | D | 1,3 | ||
| 2 | A | - | 6 | A | - |
| B | 1 | B | 3,4 | ||
| C | 2,3 | C | 2 | ||
| D | 4 | D | 1 | ||
| 3 | A | - | 7 | A | - |
| B | 1 | B | 3 | ||
| C | 2 | C | 2,4 | ||
| D | 3,4 | D | 1 | ||
| 4 | A | - | 8 | A | 2 |
| B | 1,4 | B | 3 | ||
| C | 2 | C | 4 | ||
| D | 3 | D | 1 |
Based on the above data, answer the given subquestions.
What is the preference ordering of woman C?
Correct answer
Below are the observed proposals from the traditional male propose-and-reject algorithm. After the algorithm terminates, only B is married to the man she likes the most. Also, it is known that A has the same preferences as B and every man likes C better than A. Reconstruct the complete preference lists of men and women in the given information.
| Round | Women | Men | Round | Women | Men |
|---|---|---|---|---|---|
| 1 | A | - | 5 | A | - |
| B | 1,2 | B | 4 | ||
| C | 3 | C | 2 | ||
| D | 4 | D | 1,3 | ||
| 2 | A | - | 6 | A | - |
| B | 1 | B | 3,4 | ||
| C | 2,3 | C | 2 | ||
| D | 4 | D | 1 | ||
| 3 | A | - | 7 | A | - |
| B | 1 | B | 3 | ||
| C | 2 | C | 2,4 | ||
| D | 3,4 | D | 1 | ||
| 4 | A | - | 8 | A | 2 |
| B | 1,4 | B | 3 | ||
| C | 2 | C | 4 | ||
| D | 3 | D | 1 |
Based on the above data, answer the given subquestions.
What is the preference ordering of woman D?
Correct answer
Yes
No
Correct answer
Yes
Yes
No
Correct answer
Yes
Yes
No
Correct answer
No
For each of the statements in the given subquestions, identify whether it is true or false.
TRUE
FALSE
Correct answer
TRUE
For each of the statements in the given subquestions, identify whether it is true or false.
TRUE
FALSE
Correct answer
FALSE
For each of the statements in the given subquestions, identify whether it is true or false.
TRUE
FALSE
Correct answer
FALSE
For each of the statements in the given subquestions, identify whether it is true or false.
TRUE
FALSE
Correct answer
TRUE
For each of the statements in the given subquestions, identify whether it is true or false.
TRUE
FALSE
Correct answer
TRUE
For each of the statements in the given subquestions, identify whether it is true or false.
TRUE
FALSE
Correct answer
TRUE
For each of the statements in the given subquestions, identify whether it is true or false.
TRUE
FALSE
Correct answer
TRUE
For each of the statements in the given subquestions, identify whether it is true or false.
TRUE
FALSE
Correct answer
FALSE
For each of the statements in the given subquestions, identify whether it is true or false.
TRUE
FALSE
Correct answer
FALSE
Based on the above data, answer the given subquestions.
What is the minimum number of steps required to produce the integer 1024?
Correct answer: 10
Based on the above data, answer the given subquestions.
What is the minimum number of steps required to produce the integer 32768?
Correct answer: 15
Based on the above data, answer the given subquestions.
What is the minimum number of steps required to produce the integer 189?
Correct answer: 12
Based on the above data, answer the given subquestions.
What is the minimum number of steps required to produce the integer 750?
Correct answer: 15