Managing Software Development Karl Lieberherr. Manage a significant program from requirements to implementation We wrote requirements. We wrote several.

Slides:



Advertisements
Similar presentations
COMPLEXITY THEORY CSci 5403 LECTURE XVI: COUNTING PROBLEMS AND RANDOMIZED REDUCTIONS.
Advertisements

Complexity ©D.Moshkovits 1 Where Can We Draw The Line? On the Hardness of Satisfiability Problems.
Theory of Computing Lecture 18 MAS 714 Hartmut Klauck.
Lecture 23. Subset Sum is NPC
Properties of SLUR Formulae Ondřej Čepek, Petr Kučera, Václav Vlček Charles University in Prague SOFSEM 2012 January 23, 2012.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Computability and Complexity 14-1 Computability and Complexity Andrei Bulatov Cook’s Theorem.
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
1 Polynomial Time Reductions Polynomial Computable function : For any computes in polynomial time.
NP-Complete Problems Problems in Computer Science are classified into
Complexity 19-1 Complexity Andrei Bulatov More Probabilistic Algorithms.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
T Ball (1 Relation) What Your Robots Do Karl Lieberherr CSU 670 Spring 2009.
CSU 670 Review Fall Software Development Application area: robotic games based on combinatorial maximization problems. Software development is about.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
Satisfiability Introduction to Artificial Intelligence COS302 Michael L. Littman Fall 2001.
SDG Mittagsseminar1 Using Artificial Markets to Teach Computer Science Through Trading Robots How to get students interested in algorithms, combinatorial.
SDG Mittagsseminar1 Using Artificial Markets to Teach Computer Science Through Trading Robots How to get students interested in algorithms, combinatorial.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
Lecture 22 More NPC problems
INTRODUCTION TO ARTIFICIAL INTELLIGENCE COS302 MICHAEL L. LITTMAN FALL 2001 Satisfiability.
MCS 312: NP Completeness and Approximation algorthms Instructor Neelima Gupta
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Algorithmic Derivative Trading. Types for CNFs Type of a clause: –Pair: (length, positive literals) –Example: (2,2) for (a or b) Type of a cnf: –Set union.
11/11/2015SDG1 Specker Derivative Game Karl Lieberherr Spring 2009.
MSD 2011 Midterm Karl Lieberherr 3/28/20111MSD midterm.
The Game Inside the Game Karl Lieberherr based on Master Thesis of Anna Hoepli at ETH Zurich in 2007 (communicated by Emo Welzl)
Correlations Correlations in computer science: an approach.
28.
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
CSC 413/513: Intro to Algorithms
Complexity ©D.Moshkovits 1 2-Satisfiability NOTE: These slides were created by Muli Safra, from OPICS/sat/)
PhD March The Evergreen Project: How To Learn From Mistakes Caused by Blurry Vision in MAX-CSP Solving Karl J. Lieberherr Northeastern University.
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
CSCI 2670 Introduction to Theory of Computing December 7, 2005.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
Prof. Busch - LSU1 Busch Complexity Lectures: More NP-complete Problems.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
 2005 SDU Lecture15 P,NP,NP-complete.  2005 SDU 2 The PATH problem PATH = { | G is a directed graph that has a directed path from s to t} s t
CSE 332: NP Completeness, Part II Richard Anderson Spring 2016.
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
More NP-Complete and NP-hard Problems
Richard Anderson Lecture 26 NP-Completeness
More NP-complete Problems
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness Proofs
Richard Anderson Lecture 26 NP-Completeness
(xy)(yz)(xz)(zy)
NP-Completeness Yin Tat Lee
Intro to Theory of Computation
Intro to Theory of Computation
CS154, Lecture 16: More NP-Complete Problems; PCPs
Where Can We Draw The Line?
Lecture 24 NP-Complete Problems
ICS 353: Design and Analysis of Algorithms
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
More NP-complete Problems
Richard Anderson Lecture 25 NP-Completeness
NP-Completeness Proofs
NP-Completeness Yin Tat Lee
CSE 6408 Advanced Algorithms.
Inside Microsoft Research
CS154, Lecture 16: More NP-Complete Problems; PCPs
Umans Complexity Theory Lectures
Instructor: Aaron Roth
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Presentation transcript:

Managing Software Development Karl Lieberherr

Manage a significant program from requirements to implementation We wrote requirements. We wrote several requirement documents that were “good” enough. een/specker/sdg-home.htmlhttp:// een/specker/sdg-home.html It is hard to get them perfect.

Specker Derivative Game (SDG) About buying and selling generative, active participation products based on partial information. Partial information = type T of CSP formula Generates raw material = CSP formula of given type T Active participation = Finish raw material.

Other instances buy a course: –raw materials: lectures, projects –active participation: you need to finish them: absorb the material, apply the material. buy a membership in a health club –raw materials: equipment, classes –active participation: use it.

What is needed to write good code? Understanding the application domain is important to writing good code. Application domain topics we encountered –solving min-max problems –reductions –maximizing polynomials –minimizing functions –transition systems for solving MAX-CSP

Golden nuggets of insight May simplify your program significantly. Are at a conceptual level.

Application domain knowledge dozens of relations in type –reduce to two for raw material construction!! symmetric formulas are the worst case

Controlling complexity of raw materials Set of relations: R(1,1), R(pos,length): pos of length literals are positive, length >=2. RR= {R(1,1), R(pos,length), length >=2} e.g., RR = (R(1,1),R(0,2),R(1,2),R(2,2), R(0,3), R(2,3)} Lemma: The worst raw material in this class only needs to use RRsimple={R(1,1), R(0,2)}.

Proof Let s be an arbitrary RR-formula. We simplify it to a cnf T(S) using: –In clauses containing positive literals, drop all but one. –In clauses containing only negative literals, but more than one, drop all except two. T(s) is in RRsimple and to each assignment I1 of T(s) corresponds an assignment I of s which satisfies at least as many clauses as I1 in T(s).

Example of reduction A B C A B !A !B !C A C B !C !A !B !C !D A B C A B !A !B !C A C B !C !A !B !C !D 3:A 2:!A !B 1: B A:1,B:0,C:0 5/6 sat A:1,B:0,C:0 all sat

R = 22 a b c a b d a c d b c d ¾ only a b c a b d a c d can satisfy all symmetric apply all 4! = 1*2*3*4= 24 permutations

Symmetrized formula 18:a b c 18:a b d 18:a c d 18: b c d