Question
We knowthatevenwithoutrecognizing previouslyseen nodes,genericsearch willalwaysterminateonadirectedacyclicgraphwithfinitelymanynodes. We'dliketo know howlongitmight run beforeterminating onsuchagraphwith n nodes. (a)Provethat every event when anewnodeisplacedon theopenlistcanbeassociated withadifferent pathinthe graphstartingfromthestartnode. (b)Provethatwithnogoal node,and withoutrecognizingpreviously
We knowthatevenwithoutrecognizing previouslyseen nodes,genericsearch willalwaysterminateonadirectedacyclicgraphwithfinitelymanynodes. We'dliketo know howlongitmight run beforeterminating onsuchagraphwithnnodes.
(a)Provethat every event when anewnodeisplacedon theopenlistcanbeassociated withadifferent pathinthe graphstartingfromthestartnode.
(b)Provethatwithnogoal node,and withoutrecognizingpreviously seen nodes, generic searchwillplace a nodeon theopenlistforeverypath inthegraphstartingfromthestartnode.
(c)Provethat for anynaturaln,thereisanumber,dependingonn,thatlimitsthenumberof suchpathsinan n-nodegraphsatisfying theseconditions.
(d)Explain howwecanusegenericsearch, withoutrecognizing previously seen nodes,to determine whetheragivendirected graph has a cycle.(Assumethat weknowthenumberofnodes.)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started