Skip to content

Commit

Permalink
Merge pull request #14 from virtual-labs/dev
Browse files Browse the repository at this point in the history
changed ucs to a*
  • Loading branch information
Ronak-Dhingra authored May 13, 2024
2 parents cf4f547 + 4c6830b commit de803c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions experiment/simulation/practice.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<ul>
<li class="is-active" id="Task1">
<a>
Uniform Cost Search
A* Search
</a>
</li>
</ul>
Expand All @@ -40,7 +40,7 @@
<div id="instruction-title" class="v-collapsible is-size-5">Instructions</div>
<div id="instructions" class="v-content" style="text-align: left; padding-left: 5%; padding-right: 5%;">
<ul id="instruc" style="list-style: disc;">
<li>Start The Algorithm by clicking on the `Start UCS` button after selecting the `Start Vertex` and `End Vertex` from any of the existing nodes</li>
<li>Start The Algorithm by clicking on the `Start A*` button after selecting the `Start Vertex` and `End Vertex` from any of the existing nodes</li>
<li>Cycle through the steps of the algorithm by clicking the `Next` button</li>
<li>Enabling `Autoplay` cycles though the algorithm automatically</li>
<li>`Clear` removes the Whole Graph</li>
Expand Down Expand Up @@ -73,7 +73,7 @@
<label id="ev">End Vertex (fixed): </label><input id="evi" type="number" value=0 min=0 style="width:50px;" readonly/>
</div>
<div style="margin:5px 0px">
<button id="startucs" class="button" onclick="vclear(); SN = Number(document.getElementById('svi').value); EN = Number(document.getElementById('evi').value); console.log('started expt with SN', SN);costSoFar = {[SN]:0}; setHeuristics(); console.log(heuristics); visit.put(heuristics[SN], SN); UCS(); this.disabled=true; started=true;">Start UCS</button>
<button id="startucs" class="button" onclick="vclear(); SN = Number(document.getElementById('svi').value); EN = Number(document.getElementById('evi').value); console.log('started expt with SN', SN);costSoFar = {[SN]:0}; setHeuristics(); console.log(heuristics); visit.put(heuristics[SN], SN); UCS(); this.disabled=true; started=true;">Start A*</button>
<p id="disablewarning" style="color: red; display: none;">Adding of nodes and edges temporarily disabled until algorithm stops.</p>
<button id="nuxt" class="button" onclick="UCS();">Next</button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions experiment/simulation/simulation.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<div id="instruction-title" class="v-collapsible is-size-5">Instructions</div>
<div id="instructions" class="v-content" style="text-align: left; padding-left: 5%; padding-right: 5%;">
<ul id="instruc" style="list-style: disc;">
<li>Start The Algorithm by clicking on the `Start UCS` button after selecting the `Start Vertex` and `End Vertex` from any of the existing nodes</li>
<li>Start The Algorithm by clicking on the `Start A*` button after selecting the `Start Vertex` and `End Vertex` from any of the existing nodes</li>
<li>Cycle through the steps of the algorithm by clicking the `Next` button</li>
<li>Enabling `Autoplay` cycles though the algorithm automatically</li>
<li>`Clear` removes the Whole Graph</li>
Expand Down Expand Up @@ -81,7 +81,7 @@
<label id="ev">End Vertex: </label><input id="evi" type="number" value=0 min=0 style="width:50px;"/>
</div>
<div style="margin:5px 0px">
<button id="startucs" class="button" onclick="vclear(); SN = Number(document.getElementById('svi').value); EN = Number(document.getElementById('evi').value); console.log('started expt with SN', SN);costSoFar = {[SN]:0}; setHeuristics(); console.log(heuristics); visit.put(heuristics[SN], SN); UCS(); this.disabled=true; started=true;">Start UCS</button>
<button id="startucs" class="button" onclick="vclear(); SN = Number(document.getElementById('svi').value); EN = Number(document.getElementById('evi').value); console.log('started expt with SN', SN);costSoFar = {[SN]:0}; setHeuristics(); console.log(heuristics); visit.put(heuristics[SN], SN); UCS(); this.disabled=true; started=true;">Start A*</button>
<p id="disablewarning" style="color: red; display: none;">Adding of nodes and edges temporarily disabled until algorithm stops.</p>
<button id="nuxt" class="button" onclick="UCS();">Next</button>
</div>
Expand Down

0 comments on commit de803c3

Please sign in to comment.