Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSC305 Lecture 14

CSC305 Lecture 14

Individual Software Design and Development
Strategy
(202410)

Javier Gonzalez-Sanchez

October 22, 2024
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.info o ffi ce: 14 -227

    CSC 305 Individual Software Design and Development Lecture 14. Strategy Pattern
  2. Cities are connected as they are inserted. Cities are connected

    to their nearest neighbors. Cities are connected according to the shortest path, solving the Traveling Salesman Problem (TSP). Cities are connected in alphabetical order.
  3. Lab

  4. Run 44 Make cities as circles Every new city is

    bigger than the previous one Do not close the loop. Draw a single line https://github.com/CSC3100/Patterns/tree/main/ChallengeCities
  5. CSC 305 Individual Software Design and Development Javier Gonzalez-Sanchez, Ph.D.

    [email protected] Summer 2024 Copyright. These slides can only be used as study material for the class CSC305 at Cal Poly. They cannot be distributed or used for another purpose.