Skip to content

Commit c481c1a

Browse files
committed
Exercises and solutions
1 parent ddfa0e4 commit c481c1a

2 files changed

Lines changed: 538 additions & 37 deletions

File tree

Applications_LT.ipynb

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,40 @@
290290
"## Code solution here."
291291
]
292292
},
293+
{
294+
"cell_type": "markdown",
295+
"metadata": {},
296+
"source": [
297+
"**Exercise 3:** \n",
298+
"\n",
299+
"$(a)$ Find a matrix that represents clockwise rotation of $180^\\circ$ about the point $(1,1)$ followed by a shift $3$ units to the right.\n"
300+
]
301+
},
302+
{
303+
"cell_type": "code",
304+
"execution_count": null,
305+
"metadata": {},
306+
"outputs": [],
307+
"source": [
308+
"## Code solution here."
309+
]
310+
},
311+
{
312+
"cell_type": "markdown",
313+
"metadata": {},
314+
"source": [
315+
"$(b)$ Apply the transformation to the shape defined by $\\texttt{coords}$ and plot the results."
316+
]
317+
},
318+
{
319+
"cell_type": "code",
320+
"execution_count": null,
321+
"metadata": {},
322+
"outputs": [],
323+
"source": [
324+
"## Code solution here."
325+
]
326+
},
293327
{
294328
"cell_type": "markdown",
295329
"metadata": {},
@@ -576,6 +610,22 @@
576610
"## Code solution here."
577611
]
578612
},
613+
{
614+
"cell_type": "markdown",
615+
"metadata": {},
616+
"source": [
617+
"**Exercise 2:** There are a total of $4$ webpages in a web navigation model where page $1$ links to all other pages, page $2$ links to page $1$, page $3$ links to page $2$, page $4$ links to page $2$ and $3$. Create an adjacency matrix that describes the above link structure among the four pages. Use the Python function defined in the previous question to get the corresponding matrix used in the web navigation model. Given that the browser starts the navigation at page $2$, predict the probability of browser vising each of the four pages after some large number of steps of navigation. Use your results to determine which page is most likely to be visited by the browser."
618+
]
619+
},
620+
{
621+
"cell_type": "code",
622+
"execution_count": null,
623+
"metadata": {},
624+
"outputs": [],
625+
"source": [
626+
"## Code solution here."
627+
]
628+
},
579629
{
580630
"cell_type": "markdown",
581631
"metadata": {},

0 commit comments

Comments
 (0)