Path Finding: Dijkstra's and A* Algorithms

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Ano ang layo ng Betania mula sa Jerusalem?

  • Apat na kilometro
  • Limang kilometro
  • Tatlong kilometro (correct)
  • Dalawang kilometro

Bakit maraming Judio ang dumalaw kina Marta at Maria?

  • Upang makinig sa mga turo ni Jesus.
  • Upang ipagdiwang ang pista.
  • Upang makiramay sa pagkamatay ng kanilang kapatid. (correct)
  • Upang magbigay galang kay Lazaro.

Ano ang sinabi ni Marta kay Jesus nang marinig niyang dumarating Siya?

  • "Panginoon, bakit ngayon lamang kayo dumating?"
  • "Panginoon, salamat sa pagdalaw."
  • "Panginoon, kung nandito kayo ay hindi sana namatay ang kapatid ko." (correct)
  • "Panginoon, tulungan ninyo kami."

Ano ang tugon ni Jesus sa sinabi ni Marta na muling mabubuhay ang kanyang kapatid?

<p>&quot;Muling mabubuhay ang kapatid mo.&quot; (C)</p> Signup and view all the answers

Ano ang sinabi ni Jesus na nagpapakilala sa Kanya bilang buhay at pagkabuhay?

<p>&quot;Ako ang bumubuhay sa mga namatay, at ako rin ang nagbibigay ng buhay.&quot; (C)</p> Signup and view all the answers

Ano ang tanong ni Jesus kay Marta na naglalayong patunayan ang pananampalataya nito?

<p>&quot;Naniniwala ka ba sa sinabi ko?&quot; (D)</p> Signup and view all the answers

Ano ang tugon ni Marta na nagpapakita ng kanyang pananampalataya kay Jesus?

<p>&quot;Opo, Panginoon, sumasampalataya ako na kayo ang Cristo, ang Anak ng Dios.&quot; (B)</p> Signup and view all the answers

Ano ang ginawa ni Marta pagkatapos niyang makipag-usap kay Jesus?

<p>Ipinatawag niya si Maria. (B)</p> Signup and view all the answers

Ano ang reaksyon ng mga Judiong nakikiramay nang makita nilang umalis si Maria?

<p>Sinundan nila si Maria sa pag-aakalang pupunta siya sa libingan. (D)</p> Signup and view all the answers

Ano ang sinabi ni Maria kay Jesus nang lumuhod siya sa harap Niya?

<p>&quot;Panginoon, kung nandito lang kayo ay hindi sana namatay ang kapatid ko.&quot; (B)</p> Signup and view all the answers

Ano ang naging damdamin ni Jesus nang makita niyang umiiyak si Maria at ang mga Judio?

<p>Nabagbag ang Kanyang puso at naawa Siya. (A)</p> Signup and view all the answers

Ano ang tanong ni Jesus sa mga Judio?

<p>&quot;Saan ninyo siya inilibing?&quot; (D)</p> Signup and view all the answers

Ano ang sinabi ng ibang Judio tungkol sa kapangyarihan ni Jesus?

<p>&quot;Bakit hindi niya nailigtas sa kamatayan si Lazaro?&quot; (D)</p> Signup and view all the answers

Anong uri ng libingan mayroon si Lazaro?

<p>Isang kweba na tinakpan ng isang malaking bato. (A)</p> Signup and view all the answers

Ano ang utos ni Jesus bago buhayin si Lazaro?

<p>&quot;Alisin ninyo ang bato.&quot; (A)</p> Signup and view all the answers

Ano ang reaksyon ni Marta sa pag-alis ng bato sa libingan?

<p>Nagpahayag siya ng pag-aalala dahil nangangamoy na ang bangkay. (D)</p> Signup and view all the answers

Ano ang sinabi ni Jesus kay Marta tungkol sa kapangyarihan ng Diyos?

<p>&quot;Kung sasampalataya ka ay makikita mo ang kapangyarihan ng Dios.&quot; (B)</p> Signup and view all the answers

Ano ang ginawa ni Jesus bago niya buhayin si Lazaro?

<p>Tumingala Siya sa langit at nagpasalamat sa Ama. (C)</p> Signup and view all the answers

Ano ang sinigaw ni Jesus upang buhayin si Lazaro?

<p>&quot;Lazaro, lumabas ka!&quot; (D)</p> Signup and view all the answers

Ano ang kondisyon ni Lazaro nang siya ay lumabas sa libingan?

<p>Siya ay nababalot pa ng tela sa mga kamay at paa, at may takip na tela ang mukha. (B)</p> Signup and view all the answers

Flashcards

Who was Lazarus?

Brother of Marta and Maria, he was raised from the dead by Jesus.

Who were Marta and Maria?

Sisters of Lazarus who sent word to Jesus when Lazarus was ill.

"I am the resurrection and the life."

Jesus said that He is the resurrection and the life.

What question did Jesus ask?

Jesus asked where Lazarus was laid.

Signup and view all the flashcards

Why did Jesus wept?

Jesus wept demonstrating empathy.

Signup and view all the flashcards

What did Jesus command?

He ordered them to take away the stone.

Signup and view all the flashcards

"Lazarus, come forth!"

Jesus called out loudly for Lazarus to come out.

Signup and view all the flashcards

What state was Lazarus in?

After Lazarus was resurrected, he was still bound.

Signup and view all the flashcards

What order did Jesus give?

Jesus told them to untie him and let him go.

Signup and view all the flashcards

What was the result of Lazarus' Resurrected?

Many believed in Jesus after seeing Lazarus raised.

Signup and view all the flashcards

Study Notes

  • Problem Set 4 is due tonight.
  • Problem Set 5 will be released on Gradescope tonight.

Path Finding

  • Dijkstra's Algorithm is a graph search algorithm that finds the shortest path between nodes in a graph, expanding search in all directions.
  • A* Algorithm is an informed search algorithm and an extension of Dijkstra's algorithm that uses a heuristic to guide the search.
  • A* explores more promising paths first, making it more efficient than Dijkstra's algorithm in many cases.
  • A* maintains 2 data structures: a closed set and an open set.
  • The closed Set is a list of nodes that have already been visited.
  • The open set is a priority queue of nodes to be visited.
  • The priority in the open set determined by the cost function.
  • Cost Function: $f(n) = g(n) + h(n)$
  • $g(n)$ is the cost from the start node to node $n$
  • $h(n)$ is the heuristic estimating the cost from node $n$ to the goal.
  • The heuristic $h(n)$ must be admissible (never overestimates the true cost) to guarantee that A* finds the optimal path.
  • A* iteratively expands the node with the lowest $f(n)$ value from the open set until the goal node is reached.

Probabilistic Robotics

  • Robots operate in an uncertain world due to noisy sensor measurements, imprecise actuator commands, and dynamic, unpredictable environments.
  • Probabilistic robotics is a framework for robots to reason about and make decisions under uncertainty by representing it using probability distributions.
  • Bayesian inference is used to update beliefs based on new information.

Bayes Filter

  • The Bayes filter is a probabilistic framework for estimating the state of a system over time given a series of observations and actions.
  • Belief at time $t$: $bel(x_t) = p(x_t | z_{1:t}, u_{1:t})$
  • $x_t$: State of the system at time $t$.
  • $z_{1:t}$: Sequence of observations from time 1 to $t$.
  • $u_{1:t}$: Sequence of actions from time 1 to $t$.
  • Prediction Step: $\overline{bel}(x_t) = \int p(x_t | u_t, x_{t-1}) bel(x_{t-1}) dx_{t-1}$. This predicts the new belief based on the previous belief and the action taken.
  • Integrating over all possible previous states $x_{t-1}$, weights each state by the probability of transitioning to the current state $x_t$ given the action $u_t$.
  • Correction Step: $bel(x_t) = \eta \cdot p(z_t | x_t) \overline{bel}(x_t)$. This updates the belief based on the new observation
  • A normalization factor, $\eta$, ensures that the belief is a probability distribution.
  • Correction step multiplies the predicted belief $\overline{bel}(x_t)$ by the likelihood of the observation $z_t$ given the current state $x_t$

Localization

  • Global Localization Problem exists when given a map of the environment and a sequence of observations and actions.
  • The goal of Global Localization Problem is determine the robot's location in the map.
  • Kidnapped Robot Problem occurs when the robot is placed in an unknown location and must relocalize itself based on sensor readings and map information.
  • Markov Localization is a grid-based approach that discretizes the environment into a grid and maintains a probability distribution over all grid cells.
  • Belief is updated based on sensor readings and motion commands.
  • Particle Filter Localization (Monte Carlo Localization) is a sample-based approach.
  • Belief is represented as a set of samples (particles), where each particle represents a possible robot pose.
  • Sample sets/particles are updated based on sensor readings and motion commands.
  • Particles are resampled to focus on areas where the robot is more likely to be located.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Shortest Path Algorithms Overview
16 questions
Dijkstra's Algorithm: Weighted Shortest Path
19 questions
Use Quizgecko on...
Browser
Browser