recategorized by
950 views
1 votes
1 votes

Let $G$ be a directed graph whose vertex set is the set of numbers from $1$ to $100$. There is an edge from a vertex $i$ to a vertex $j$ if and only if either $j=i+1$ or $j=3i$. The minimum number of edges in a path in $G$ from vertex $1$ to vertex $100$ is ______

  1. $23$
  2. $99$
  3. $4$
  4. $7$
recategorized by

2 Answers

0 votes
0 votes
Edge set consists of edges from i to j, using either two conditions are j = i + 1 or j = 3i
Second choice helps us to move from 1 to 100. The trick to slot this is to think the other way
around. Try to find a 100 to 1 trail, instead of having a 1 trail to 100.
So, the edge sequence with the minimum number of edges is
1 → 3 → 9 → 10 → 11 → 33 → 99 → 100
which consists of 7 edges.
Hence the correct answer is 7.
Answer:

Related questions