|
| Homework 18General Comments
- For full credit, provide context for each problem, show all calculations,
and justify all answers by providing enough comments to explain your reasoning.
- Homework assignments must be very neatly written or typeset
(e.g. using Word or OpenOffice).
- You can get up to 50% credit on a problem if you get significant outside assistance. Thus, if you are totally stuck on a problem it might be worth getting help. However, you must indicate any assistance/collaboration (See the Homework Assistance section on the Policies page). Failure to do so could result in a failing grade for the course! Note that getting help from the Help Center or me does not count as significant outside assistance, but talking with your classmates or searching on the Internet does!
- If a problem asks for an algorithm,
you should give the most efficient algorithm you can find to ensure full credit.
You should also specify the complexity of the algorithm with justification,
whether or not the problem asks for it.
DetailsVibe Coding an Algorithm Demo
Goal: Create a demo of an algorithm (choices listed below) with the
assistance of your favorite AI tool(s). Make sure you do enough learning about your algorithm so you know that the demo is an accurate representation of how the algorithm works. Here are the details:
- Go to Books
- Right-click on the following files and download and save them somewhere (I will add the names below once assigned):
- Algorithm Demo TEMPLATE.html
- style.css
- demo.css
- demoScripts.js
- You will be assigned one of the following during an in-class discussion:
- Hashing--Open Addressing (insert, delete, search)
- Closest Pair (2D)--Brute Force (R-Dawg)
- Closest Pair (2D)--Divide-and-Conquer
- Unbalanced BST (insert, delete, search)
- 2-3 Trees (insert, delete, search) (Bryson)
- Red-Black Trees (insert, delete, search)
- AVL Trees (insert, delete, search) (Matthew)
- Fibonacci number using 2x2 matrix multiplication
- Dijkstra's Algorithm (Alem)
- Generating permutations
- Generating subsets (Wyatt)
- Give the 4 files to your favorite AI chatbot, describe the demo you want, dialog with it back and forth making sure it "understands" what you want.
- Tell it the demo should follow the template and use the style/js scripts and not override the style unless absolutely necessary
- Tell it the demo should use HTML/CSS/JS/SVG.
- Give it enough details about what the demo should display and what
the steps should do so it has a good starting point.
- If the algorithm is similar to one of the existing ones, download the existing demo code and feed it into the AI as a starting point.
- Submit the demo by copying the HTML file to your shard Google folder.
- You will also give a short presentation (10 minutes?) of your chosen algorithm, using the demo to explain the details.
Bonus! Write a page similar to those in DAIA to go along with your demo.
You will need to give the AI the following files as a starting point:
- Algorithm TEMPLATE.html
- style.css
- chapter.css
- chapterScripts.js
You can get an OK draft via AI, but getting a polished page involves a lot of back-and-forth with it to smooth everything out, make sure it makes sense and is readable, and make sure it is accurate.
|
|
|