MSD 2011 Midterm Karl Lieberherr 3/28/20111MSD midterm.

Slides:



Advertisements
Similar presentations
Building Bug-Free O-O Software: An Introduction to Design By Contract A presentation about Design By Contract and the Eiffel software development tool.
Advertisements

System Development Life Cycle (SDLC)
Supporting continuous improvement in the replication process Getting to Grips with Replication Seminar 3: Monitoring, evaluation & continuous improvement.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Logic.
Scientific Community Game Karl Lieberherr 4/29/20151SCG.
1 Software Engineering Lecture 11 Software Testing.
Alternate Software Development Methodologies
ISBN Chapter 3 Describing Syntax and Semantics.
CS 355 – Programming Languages
Algorithms and Data Review Fall 2010 Karl Lieberherr 1CS 4800 Fall /7/2010.
Specker Challenge Game (SCG): A Novel Tool for Computer Science Karl Lieberherr.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
A Quick Look at Quantified Statements. Why are Quantified Statements Important? The logical structure of quantified statements provides a basis for the.
Software Architecture in Practice
Describing Syntax and Semantics
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
The Scientific Community Game as A Crowdsourcing Platform to Distinguish Good from Bad Presentation to Clients by Software Development Organization 4/24/20111.
Software Reengineering 2003 년 12 월 2 일 최창익, 고광 원.
T Ball (1 Relation) What Your Robots Do Karl Lieberherr CSU 670 Spring 2009.
SCG Example Labs Ahmed Abdelmeged Karl Lieberherr.
Test Organization and Management
CSU 670 Review Fall Software Development Application area: robotic games based on combinatorial maximization problems. Software development is about.
SCG Domain Specification Karl. Overview What needs to be provided – What GameProvider needs to provide to define a competition. – What each Scholar needs.
Poster Design & Printing by Genigraphics ® The Scientific Community Game Education and Innovation Through Survival in a Virtual World of.
Virtual Scientific-Community-Based Foundations for Popperian e-Science Karl Lieberherr Ahmed Abdelmeged Northeastern University, CCIS, PRL, Boston 9/17/20151.
The Scientific Community Game for STEM Innovation and Education (STEM: Science, Technology, Engineering and Mathematics) Karl Lieberherr Ahmed Abdelmeged.
A Popperian Platform for Programming and Teaching the Global Brain Karl Lieberherr Ahmed Abdelmeged Northeastern University, CCIS, PRL, Boston 10/9/20151.
Pricing Combinatorial Markets for Tournaments Presented by Rory Kulz.
Lecture on Computer Science as a Discipline. 2 Computer “Science” some people argue that computer science is not a science in the same sense that biology.
CSE 219 Computer Science III Program Design Principles.
Software Development using artificial markets of constructively egoistic agents Karl Lieberherr 1SD-F09.
SCG Court: A Crowdsourcing Platform for Innovation Karl Lieberherr Northeastern University College of Computer and Information Science Boston, MA joint.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
SCG Court: A Crowdsourcing Platform for Innovation Karl Lieberherr Northeastern University College of Computer and Information Science Boston, MA joint.
SCG Court: A Crowdsourcing Platform for Innovation Karl Lieberherr Northeastern University College of Computer and Information Science Boston, MA joint.
The Scientific Community Game Education and Innovation Through Survival in a Virtual World of Claims Karl Lieberherr Northeastern University College of.
SCG layers or SCG stages Karl and Yue. Layers of Constraints We can look at the process of game design as a successive layering of constraints on a game.
A Popperian Platform for Programming and Teaching the Global Brain Karl Lieberherr Ahmed Abdelmeged Northeastern University, CCIS, PRL, Boston 11/20/20151.
Chapter 3 Part II Describing Syntax and Semantics.
The Software Development Process
A Popperian Platform for Programming and Teaching the Global Brain Karl Lieberherr Ahmed Abdelmeged Northeastern University, CCIS, PRL, Boston 12/5/20151.
Software Maintenance Speaker: Jerry Gao Ph.D. San Jose State University URL: Sept., 2001.
Software Development Problem Analysis and Specification Design Implementation (Coding) Testing, Execution and Debugging Maintenance.
Managing Software Development Karl Lieberherr. Manage a significant program from requirements to implementation We wrote requirements. We wrote several.
The Algorithms we use to learn about Algorithms Karl Lieberherr Ahmed Abdelmeged 3/16/20111Open House 2011.
A Popperian Platform for Programming and Teaching the Global Brain Karl Lieberherr Ahmed Abdelmeged Northeastern University, CCIS, PRL, Boston 12/23/20151.
Key Points Karl Lieberherr. Challenge: old high-level description Price Set of problems 1/5/20162Summary.
Tommy Messelis * Stefaan Haspeslagh Patrick De Causmaecker *
11 Software Design CSCU 411 Software Engineering.
Persistent Playgrounds Fall 2011 Managing Software Development 1/27/20161Persistent Playgrounds.
Search Engine Optimization © HiTech Institute. All rights reserved. Slide 1 Click to edit Master title style What is Business Analysis Body of Knowledge?
Dynamic Testing.
1 The Software Development Process ► Systems analysis ► Systems design ► Implementation ► Testing ► Documentation ► Evaluation ► Maintenance.
Onlinedeeneislam.blogspot.com1 Design and Analysis of Algorithms Slide # 1 Download From
EEL 5937 Content languages EEL 5937 Multi Agent Systems Lecture 10, Feb. 6, 2003 Lotzi Bölöni.
A Popperian Platform for Programming and Teaching the Global Brain Karl Lieberherr Ahmed Abdelmeged Northeastern University, CCIS, PRL, Boston 3/15/20161.
A Popperian Socio-Technical Platform for Solving Scientific Problems Karl Lieberherr Ahmed Abdelmeged Northeastern University, CCIS, PRL, Boston 6/8/20161.
A Popperian Platform for Programming and Teaching the Global Brain Karl Lieberherr Ahmed Abdelmeged Northeastern University, CCIS, PRL, Boston 6/26/20161.
The Scientific Community Game for STEM Innovation and Education
Chapter 16 and 17 Review December 8, 2008.
Understand the Programming Process
SCG Court: A Crowdsourcing Platform for Innovation
Software Engineering (CSI 321)
Virtual Scientific-Community-Based Foundations for Popperian e-Science
Understand the Programming Process
Karl Lieberherr Ahmed Abdelmeged
Presentation transcript:

MSD 2011 Midterm Karl Lieberherr 3/28/20111MSD midterm

1. Strengthening 1.add to oppose actions in scg.cd: 1.OpposeRequest = Agree| Strengthen | Refute. 2.In scg.beh: AvatarI: strengthen public OpposeResponse strengthen(OpposeRequest request)? 3.Define how to use refutation protocol to deal with strengthening: Alice, proposes, Bob strengthens, Bob must defend strengthened claim against Alice. 3/28/20112MSD midterm

2. Confidence Add to claim definition in scg.cd update valid function for Claim: confidence must be in [0..1]. Make sure we have a valid function for Claim. Avatar propose needs to be updated: create claims with confidence. Random [0,1] for baby avatar. Influences playground level and SCG level. Reputation update: make a proposal: multiply old result with confidence. 3/28/20113MSD midterm

Game Design 1.The cd 2.valid 3.quality 4.Refutation protocol: ExistsForAll: “instance from Alice” + “Solution of 0 from Bob” 5.getResult: check if Bob’s solution has quality 1 3/28/20114MSD midterm

Interfaces, Knowledge and Skills of Playground Designer 1.SCG rules: how to play the game. 2.Domain Knowledge, e.g., CSP. 3.Define context-free grammars in EBNF style syntax 4.Write programs in data-binding technology (common in XML technology) (for baby avatar, etc.) 5.The more domains, protocols, we have the more the playground designer does configuration. 6.Finding InstanceSets that lead to interesting games. What are the niches for specialized, more efficient algorithms? 7.Request and Response object format for baby avatar. 3/28/20115MSD midterm

PG Designers about scg.cd Claim fields must be in a certain order. Styles of games Protocol language 3/28/20116MSD midterm

PG Designer about Protocols List of available protocols Should know basic predicate calculus (from logic) and the connection between games and predicate logic. Prenex normal form?: all quantifiers at beginning. Difference between mathematical claims (for which a winning strategy corresponds to a proof) and other claims that must be settled using the game. Need for a new protocol? Provide a valid protocol definition Protocol negation: same domain: roles of Alice and Bob are reversed and a defense is changed into a refutation. 3/28/20117MSD midterm

Not asked: Domain Designer Knows domain and standard solution approches. Knows about subdomains that have faster/customized solutions and offers those through instance sets. 3/28/20118MSD midterm

Protocol Negation !C=ExistsForAll !p instance from Alice solution sB of 0 from Bob check: sB has quality <= t Alice wins, Bob loses C=ForAllExists p instance from Bob solution sA from Alice check: sA has quality <=t Alice loses, Bob wins 3/28/20119MSD midterm

Protocol Negation 2 C = EA p(0,1) Alice claims Bob refutes instance from Alice solution of 0 from Bob Alice defends iff p(0,1) !C = AE !p(0,1) Alice claims Bob refutes instance from Bob solution of 0 from Alice Alice is refuted iff p(0,1) 3/28/2011MSD midterm10 Alice Bob, refute defense

Modules SCG Court – defines SCG rules and what must be provided by playground designer (structures, languages and interface implementations) Domain – defines languages and contracts of functions Protocol – scientific discourse and contract for outcome Playground: a configuration of a domain and claims in domain using protocol. 3/28/201111MSD midterm

Hiding Complexity It is important to hide complexity from playground designers and avatar designers. A playground designer needs an abstract view of scg.cd and scg.beh. She needs only the signatures and contracts of methods, not their implementation, and she needs the languages defined in scg.cd. An avatar designer needs an abstract view of the implementation provided by the playground designer. Signatures and contracts. Playground designer must provide contracts for avatar designer. 3/28/201112MSD midterm

Acceptance Test Design 2 closely related new games – MAX-SAT-ALL and MAX-SAT-SECRET Domain: CNFs – standard algorithm: generating a random assignment where each variable is set to true with probability p. – InstanceSets: Length(k) = clauses are exactly of length k. – quality(F,J) = fsat(F,J) = fraction of satisfied clauses. – valid(F,J) = all clauses in F evaluate to t or f – belongsTo(F,k) = all clauses use distinct literals and are of length k 3/28/2011MSD midterm13

MAX-SAT-ALL(k) Protocol: ForAllExists(F,J) and its negation Claims: MAX-SAT-ALL(k,t) = in CNFs in instance set Length(k) there exists an assignment of at least quality t. 3/28/2011MSD midterm14

MAX-SAT-SECRET(k) Protocol: PositiveSecret(F,JA,JB) and its negation Claims: MAX-SAT-SECRET(k,t) = in CNFs in instance set Length(k) Alice’s JA approximates Bob’s secret solution JB within t. fsat(F,J)>=t 3/28/2011MSD midterm15

The Actions of an Avatar 3/28/2011MSD midterm16 propose C1 oppose/refute C2 oppose/strengthen C3 agree C4 I=provideInstance(C5) S=solveInstance (I) Scholar

Flow Game FlowClaim(c,G) = Exists flow F in G with value(F) >= c. Domain 3/28/2011MSD midterm17

Design Document for SCG Court Evolution It is important to prepare a design document for SCG Court that can be given to future developers of SCG Court to prepare them for SCG Court maintenance and evolution tasks. This document should outline the architecture of the system, using pictures. It should outline the “philosophy” used by the implementation teams so that this philosophy can also be followed during system maintenance. 3/28/2011MSD midterm18

For example, the contract that the admin must check all incoming claim, instance and solution objects for validity (using valid(…) and belongsTo(…) must be mentioned. Please can the implementation teams write this document and present it at the last class. 3/28/2011MSD midterm19

agile development methodologies—and especially Extreme Programming—already incorporate the three keys to test automation: (1) testers and programmers are expected to work together as a single team, (2) the team treats test automation as a team responsibility and (3) testers are expected to be engaged and testing throughout, often writing tests before code’s been written. These tests, called acceptance tests, test the system from a customer perspective. The tests themselves are variously written by product programmers, dedicated testers, or analysts acting in the customer role. They use the testing framework created by the product programmers to execute the tests. This is a significant difference from the traditional arrangement that assigns the responsibility for test automation to an independent testing team. from: 3/28/2011MSD midterm20

SCG train people to distinguish good claims from bad claims in a domain D where there is constructive evidence for defending good and refuting bad claims. good = true claim, optimal claim, recommended treatment for symptoms bad = false claim, non-optimal claim, non- recommended treatment for symptoms 3/28/2011MSD midterm21

Complexity distinguishing good claims from bad claims is hard. defending a good claim is easier refuting a bad claim is easier 3/28/2011MSD midterm22

Claims and, or, not, ForAll, Exists basic claims are decided by refutation protocol 3/28/2011MSD midterm23

Behaviors good – propose good claim and defend it. – agree with good claim and defend it and refute negation. – oppose bad claim and refute or strengthen it. bad – propose bad claim. – fail to refute bad claim defend good claim 3/28/2011MSD midterm24