A theory of reverse engineering N.Y. Louis Lee (1) & P.N. Johnson-Laird (2) (1)Department of Educational Psychology, Faculty of Education, The Chinese.

Slides:



Advertisements
Similar presentations
Logical Functions Circuits using NMOS and PMOS enhancement mode FETs.
Advertisements

Logic Gates.
NanoFabric Chang Seok Bae. nanoFabric nanoFabric : an array of connect nanoBlocks nanoBlock : logic block that can be progammed to implement Boolean function.
Electronics Gorbachenko Vasyl. What is electronics? Electronics is the branch of science, engineering and technology dealing with electrical circuits.
Dr. Andreas Kunz © 10/2004 inspire icvr BASICS OF ELECTRONICS.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
The Potential Divider Electricity Lesson 10. Learning Objectives To know what a potential divider is. To derive and know how to use the potential divider.
Electrical Engineering. A circuit is a combination of different components that allow electricity to flow through them. Each component serves its own.
Lecture 8 Topics –Switch –Transistor –CMOS transistor –Logic gates AND, OR, NOT Universal gates: NAND, NOR XOR.
Electro-Pneumatics Module 1
1 LC1 Core Science Project.  Components :-  -Electrons Move from the (-ve) to (+ve) side -Electric current moves from (+ve) to (-ve) side -Energy is.
 Anti-Theft Device Group 2 Will, Alex, Ken, Ryan and Savannah.
Powerful Products for Communications Power Supply Development Electrical and Mechanical Simulation Missing Links Lorenzo Cividino.
Electrical Circuits. A path where electric charges move along (through wires).
Circuits Topic- Seating Plan. Electric Circuits Level 4Level 5Level 6 Use circuit components to construct a series circuit Describe how a torch circuit.
Current Electricity. Why did the electron cross the road? Or, why do electrons move in the wire when terminals are connected?
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Slide No. 1 Course: Logic Design Dr. Ali Elkateeb Topic: Introduction Course Number: COMP 1213 Course Title: Logic Design Instructor: Dr. Ali Elkateeb.
CSIS CSIS Input AND from Transistors Illustrates basic use of IDL-800 Illustrates construction of gates Illustrates the “transistor bleed-through”
1 H ardware D escription L anguages Modeling Digital Systems.
Electric Circuits Part One: Electric Circuits Learning Goals  Define electricity.  Describe the components of an electric circuit.  Explain the difference.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
CS 8421 Computing Systems, Dr. Hoganson Copyright © 2004, 2006 Dr. Ken Hoganson CS Class Will Start Momentarily… CS8421 Computing Systems.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Zoning Hydronic Systems. Zone Control Divides the Space to be Heated 1.Each with its own heating needs and control systems 2.There are several reasons.
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
ELECTRICAL ENGINEERING DIGITAL LOGIC TUTORIAL AND DESIGN 1.
1 RLL: Relay Ladder Logic CONTENTS 1. PLC operation 2. PLC programming 3. Ladder logic 4. Memory and gates.
Electric Circuits Electric Current – the movement or flow of electric charges from one place to another. Electric Circuit – a controlled path in.
Logic Gates M. AL-Towaileb1. Introduction Boolean algebra is used to model the circuitry of electronic devices. Each input and each output of such a device.
What is a circuit? A set of connected electrical components that provide one or more complete paths for the movement of charges. A set of connected electrical.
C ELLS IN S ERIES AND P ARALLEL Science 9. W HAT IS A CIRCUIT ? A circuit is when electrical current flows through a controlled path.
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO CS 219 Computer Organization.
Dual Sparkle Circuit Green connections are wires – they can be any colour. Make sure all + and - connections match up. Make sure the larger battery terminal.
Electricity Notes 6 - Circuits Electric Circuit – _______________________________________ All electrical circuits have 4 parts: 1.____________________________________________________.
Electricity Circuits. Learning Goals I will be able to identify both series and parallel circuits. I will be able to draw circuit diagrams.
Avoid _____________ _____________ _____________ _____________ _____________ _____________.
Electrical Circuits. Energy transfer in circuits Energy cannot be created or destroyed. In all devices and machines, including electric circuits, energy.
Relational complexity and mental models in relational reasoning Geoffrey P. Goodwin The London Reasoning Workshop Festschrift for David Over’s 60 th Birthday.
 A transistor is the basic building block of electronic components.  The average computer may have millions of them within its circuits.  Essentially,
Analyzing & Building Electrical Circuits.  Predict the effects of switches, resistors and other circuit diagram symbols.  Draw circuit diagrams for.
Logic Gates Unit 16.
Logic gates.
Logic Gates.
Lesson 4 Electricity Part 3.
How Boolean logic is implemented
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Logic Gates L Al-zaid Math110.
Batteries: the Chemistry
Workbook Section.
SAT-Based Area Recovery in Technology Mapping
Conductors and Insulators
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Series and Parallel circuits
22/02/2019 Electrical Circuits.
Logic Gates Dr.Halimah Alshehri.
W Richards Worthing High School
Lecture No# 8 Prepared by: Engr. Qurban Ali Memon
Lecture 5 Binary Operation Boolean Logic. Binary Operations Addition Subtraction Multiplication Division.
Warm up In your own words describe what you think electricity is.
Circuits using NMOS and PMOS enhancement mode FETs
Introductory Concepts
Copyright © Cengage Learning. All rights reserved.
W Richards The Weald School
W Richards Worthing High School
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Electric Circuits Ch 17, section 4.
24/05/2019 Electrical Circuits.
Reconfigurable Computing (EN2911X, Fall07)
Presentation transcript:

A theory of reverse engineering N.Y. Louis Lee (1) & P.N. Johnson-Laird (2) (1)Department of Educational Psychology, Faculty of Education, The Chinese University of Hong Kong (2) Department of Psychology, Princeton University Presented at the 2 nd London Reasoning Workshop 29 August 2007

1. What is reverse engineering? Reverse engineering: process of inferring how to assemble known components so that they match the performance of a target system A major industry! No psychological theories of it exist

Test-bed: Boolean systems. Defined only by Boolean logic e.g., Boolean electric circuits. Two switches control a light – comes on when only one of the switches is on, not both (“A or-else B”) Cf. Reverse engineering of computer software

2. A theory Two principal strategies: –focus on the positive outcomes one at a time, e.g., the light comes on –focus on the input components one at a time, e.g., the switches Individuals apply constraints when they implement the strategies while constructing a circuit (e.g., do not connect two terminals of a switch with a wire)

Difficulty of reverse engineering A reverse engineering problem should be harder when there is: (1)a greater number of variable components that affect the performance of a system (2)a greater number of distinct states the system that yield positive outputs (3)greater dependence of components on one another in determining the output of the system

3. Experiments Expt 1: A basic test of the theory’s prediction of difficulty. What strategies do people use? Expt 2: How do the number of positive outcomes and dependence matter? Expt 3: Does the physical layout of the circuit matter?

Experiment 1 Two isomorphic blocks of three problems: AND, OR, OR-ELSE. First block in the electric domain, second block in water flow domain Ss to draw solutions and to think aloud

Expt 1: Interface (electric) Solution:

Expt 1: Interface (water flow) Solution:

Expt 1: Difficulty prediction AND: independent – either switch can turn light off independently. One positive outcome OR: independent – either switch can turn the light on. But, three positive outcomes OR-ELSE: dependent – a the effect of one switch is dependent on the position of the other Hence, predicted difficulty: AND < OR < OR-ELSE

Expt 1: Results (strategies) (1) S9 – ‘Or’ problem (2) S16 – ‘Or’ problem Bias for the first strategy (92%) Few violations of local constraints, e.g., connecting two terminals of a switch

Expt 1: Results (accuracy) Reliable trend in both domains 1, no reliable differences between domains 2 or blocks 3 1.Page’s L = 264.0, z = 3.79, p<< Wilcoxon, z = 0.0, p = Wilcoxon, z = 1.27, p =.21

Expt 1: Results (latency) Overall trend reliable 1, no reliable difference between domains 2 or blocks 3 1.Page’s L = 272.5, z = 5.14, p<<.001; s vs 327.1s, Wilcoxon, z = 1.36, p =.17, n.s s vs 302.6s, Wilcoxon, z = 1.53, p=.126, n.s.

Experiment 2 Tested the number of positive outcomes and dependence orthogonally 5 problems varying in no. positive outcomes (1 vs 3 vs 5) and dependence (independent vs dependent): No. of positive outcomes 135 IndependentA and (B and C)A and (B or C)A or (B and C) Dependent (Iff (A and B) then C) and (A or B) (Iff (A or-else B) then C) or (A and B)

Expt 2: Results (accuracy) Effect of no. of positive outcomes 1, and dependence 2 1.Page’s L = 210.0, z = 4.74, p<< Wilcoxon, z = 3.52, p<<.01

Expt 2: Results (latency) Effect of no. of positive outcomes 1 and dependence 2 1.Page’s L = 270.5, z = 4.82, p<< Wilcoxon, z = 3.92, p<<.01

Expt 2: Discussion Effect of no. of positive outcomes only attributable to the problem with one positive outcome Explanation: possible to ‘decompose’ an independent circuit by building it up part by part regardless of the number of positive instances. Not possible for dependent circuits A and (B or C) (Iff (A and B) then C) and (A or B) (A B C, A ¬B ¬C, ¬A B ¬C)

Expt 3: Congruence A congruent system: interconnections run physically in parallel. Easier to reverse engineer than an incongruent system: interconnections have to cross one another Compare the following two problems: A or-else BIff A then B CongruentIncongruent

Expt 3: Congruence Solutions to AND, OR, OR-ELSE in Expt 1: Results in Expt 1 attributable to congruence? Expt 3: Congruent vs Incongruent block of the three problems

Expt 3: Results Trend reliable for overall 1, congruent, and incongruent problems; Congruent problems easier than incongruent problems 2 1.Accuracy: Page’s L = 262.5, z = 3.56, p <<.001; Page’s L = 212.5, z = 4.35, p << Accuracy: Wilcoxon, z = 1.66, p <.05; Latency: Wilcoxon z = 2.50, p <.01 Accuracy (%):Latency:

4. Conclusions Reverse engineering: devising an underlying mechanism for a device of a known functionality Naïve individuals use two principal sorts of strategy when they reverse engineer Boolean systems: focus on each outcome at a time, or each switch at a time Four factors of difficulty: dependence (crucial!), no. of positive outcomes, no. of input components, congruence