Picking the Best Next Step
Imagine you have one hour before dinner and you want to finish your homework. You could: do the hardest problem first, start with the easiest problem, or read your book instead and save homework for later. Three options! Which one is the best next step for your goal? This is exactly the kind of choice an AI agent has to make every time it works through a plan. Today we are going to learn how agents pick the best next step — and how you can too.
More Than One Path Can Lead to the Goal
Sometimes there is only one way to do something. But often there are several possible next steps, and the agent has to pick the one that will move it toward the goal most efficiently. Efficiently means getting there without wasting time or effort. Here is a simple example. Priya wants to water all six plants on the porch before school. She could water them in any order. But three of them are on the left side and three are on the right. If she waters left-left-left-right-right-right, she only has to walk across once. If she waters left-right-left-right-left-right, she walks back and forth five times. Same goal. Same plants watered. But one path is much smarter. Picking the right order makes a real difference!
When an agent has more than one possible next step, it picks the one that moves it toward the goal most efficiently. A good choice saves time and effort. A bad choice might still reach the goal, but it wastes energy along the way.
How does an agent decide which step to pick? It thinks about a few questions. Question one: which step gets me closer to the goal? A step that moves toward the finish line is better than one that does not. Question two: which step makes the next steps easier? Sometimes doing one thing first makes everything after it simpler. Question three: which step is possible right now? If a step needs something the agent does not have yet, it cannot do it. So it must pick something it actually can do. Thinking through these questions helps the agent make a smart choice — not just any choice.
Complete the sentence about picking steps.
Here is a story about two agents making different choices. Both agents had the same goal: prepare a report about polar bears. The report needed a title page, three paragraphs, and five photos. Agent A decided to find the photos first, then write the paragraphs, then make the title page. Each piece built on the last — the paragraphs made it easy to pick the right photos, and the title came naturally once the content was done. Agent B decided to make the title page first, then look for photos without reading the paragraphs, then write the paragraphs. It ended up having to look for photos twice because the first set did not match the paragraphs. Same goal. Agent A picked better next steps. It finished faster with less repeated work.
For each situation, match the goal with the best next step to take first.
Terms
Definitions
Drag terms onto their definitions, or click a term then click a definition to match.
A good agent picks the best next step, but it also stays flexible. If a chosen step hits an obstacle, the agent picks a different next step and keeps moving. Great planners are both thoughtful and adaptable.
An agent wants to bake cookies and needs to preheat the oven and gather ingredients. Why should it gather the ingredients FIRST?
What does it mean to do something efficiently?
Step Auction
- You are going to play Step Auction with a partner.
- Pick one of these goals: make a peanut butter sandwich, pack a bag for a picnic, or plant a seed in a cup of soil.
- Each of you separately writes down what you think the steps are and in what order.
- Compare your two lists. Where are they the same? Where are they different?
- For each difference, discuss: whose order is more efficient and why?
- Together, make one final list that you both agree is the BEST order.
- Talk about it: what made some orders better than others?