Presentation on theme: "Mathematics throughout the CS Curriculum Support by NSF #"— Presentation transcript:
Mathematics throughout the CS Curriculum Support by NSF #
General Consensus Most CS faculty agree that math is important. Discrete Math is usually required.
The Problem Students study math, but don’t see the connection to their CS courses. Content Reasoning skills Why Reasoning Skills? What Reasoning Skills??
Beyond the Classroom Current Software is too large for one person to understand at the code level. Software engineers must work at the modular level. How do we prepare future programmers? What do they need to know? How can they reason about large programs composed of many parts?
What reasoning skills are necessary? Concept Inventory Boolean LogicStandard Logic Symbols, Standard Proof Techniques Discrete Math StructuresSets, Strings, Numbers, Relations, and other mathematical theories as needed Precise SpecificationsMathematical Descriptions of Software interfaces for clients and implementers. Math models for structures Pre and Post conditions for operations. Modular ReasoningEach Module needs to be proven correct only once. Verification ConditionsMathematical Assertions equivalent to the correctness of the program. Correctness ProofsApplication of Proof Techniques to the program
Apply in All Courses Introductory Level Programming Data Structures and Algorithms Software Engineering Theory of Programming Languages Electives
Motivation for Reasoning Binary search in C++ library Proven correct? Failed!
Need Precise Specs Need to distinguish between mathematical integers and computer integers Specs take this distinction into account.
Introductory Programming Informal and Formal Reasoning Reasoning Tables Reasoning based on specification without needing to see code.
Example Operation PlusTwo(updates i: int) requires ?? ensures i = #i + 2; Code Increment(i);
Increment Operation Increment (updates i: int) requires i < max_int; ensures i = #i + 1; No need to see Code i := i + 1;
Example Operation PlusTwo(updates i: int) requires i < max_int - 1; ensures i = #i + 2; Code Increment(i);
Upper Level Formal Methods in Software Engineering Algorithms (Distinction between proving an algorithm and that an implementation meets the specification of the algorithm) Theory of Programming Languages – (Verifying Compiler Challenge)
Formal Methods Unit Often at end of text Missing altogether