1 / 6

Introduction to Programming: A Roadmap to Efficient Coding and Mathematical Models

This lecture explores the foundational concepts of programming through a structured roadmap. It emphasizes the importance of mathematical models, such as graphs and trees, in simplifying complex problems. The discussion includes informal algorithm sketches, abstract data types, and the transition from pseudocode to executable code. Key criteria for successful programming—ease of understanding, efficient resource use, and adherence to the KISS principle (Keep It Simple, Stupid)—are highlighted. Learn how to write effective algorithms and code that works right and fast.

filbert
Download Presentation

Introduction to Programming: A Roadmap to Efficient Coding and Mathematical Models

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction Roadmap to Programming work, right, fast KISS CS 303 – Introducton Lecture 2

  2. A Roadmap to Programming (0) Mathematical Model (Graph, Tree, Set, List, ...) Strips away unimportant details may show that this problem is just like some other problem (already solved? known to be hard? Informal Algorithm Sketch of a program; overall control structure Operates on Mathematical Model CS 303 – Introducton Lecture 2

  3. A Roadmap to Programming (1) Abstract Data Types Mathematical Model Operations from Informal Algorithm Pseudo-Code Almost compiles No resource allocation To be read by humans! CS 303 – Introducton Lecture 2

  4. A Roadmap to Programming (2) Data Structures Representation details Resource (storage) allocation Code Compiles! Executes! CS 303 – Introducton Lecture 2

  5. Criteria • Easy to: • Understand • Code • Debug • Efficient use of Resources • User • Programmer • Computer CS 303 – Introducton Lecture 2

  6. Method - KISS • KISS – Keep It Simple, Stupid! • Make it: • Work • Compiles, Executes • Right • Gets the right answer • Fast • Input (size, conditioning) • Algorithm Complexity • Speed of hardware • Quality of coding CS 303 – Introducton Lecture 2

More Related