# Search Algorithims

Handwrite your answers and upload a picture to the canvas OR you type your responses directly into the canvas.

![](https://lh5.googleusercontent.com/dYANboMYUq7_81rTZt9CyZE0VR21Ex9i1-SMgl4W_ZFkTvPaeBVcVOlLanBtRzbq1W6WwUhC6hvzo6IGEnVDfH0YMULUxgLAmCNWiHdeZJRKwsQLG1uiGv8BvK263CtONJSkWklD)

**Y**ou are developing a family shopping list APP that allows all family members to add items to the shopping list. However, you don’t want to add duplicate items to the list (how many dozen eggs does one family really need?)<br>

Write down the algorithm to accept user input for an item, check to see if that item already exists on the list before appending it to the lis&#x74;**.** If you prefer-  you can program it in SNAP and provide me with a SNIP IT. \ <br>

Write the algorithm to put these boxes in order - based on the date of birth of each student - with the oldest student at the TOP of the list (or in ascending order - where each person gets younger). Consider what are you evaluating - what items are you comparing? <br>

![](https://docs.google.com/drawings/u/0/d/sSb0MJ153J4JfKvWkk9b8Gw/image?w=640\&h=122\&rev=1\&ac=1\&parent=1ZAsGFwZgAGlgaEJY8fkdekOPnnJin1R6lP9X4ADgNhs)

**Define: linear search**<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://computational-thinking-in-room11.gitbook.io/apcsp-room112/april-at-home-material/search-algorithims.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
