May 2012Malfunction DiagnosisSlide 1 Malfunction Diagnosis A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.

Slides:



Advertisements
Similar presentations
A Lesson in the “Math + Fun!” Series
Advertisements

Marking Schema question1: 40 marks question2: 40 marks question3: 20 marks total: 100 marks.
Lecture 19: Parallel Algorithms
CS4231 Parallel and Distributed Algorithms AY 2006/2007 Semester 2 Lecture 6 Instructor: Haifeng YU.
Apr. 2007SatisfiabilitySlide 1 Satisfiability A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
BackTracking Algorithms
Apr. 2012Byzantine GeneralsSlide 1 Byzantine Generals A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
1 Maximal Independent Set. 2 Independent Set (IS): In a graph G=(V,E), |V|=n, |E|=m, any set of nodes that are not adjacent.
1 The Limits of Computation Intractable and Non-computable functions.
Outline. Theorem For the two processor network, Bit C(Leader) = Bit C(MaxF) = 2[log 2 ((M + 2)/3.5)] and Bit C t (Leader) = Bit C t (MaxF) = 2[log 2 ((M.
Prepared by Ilya Kolchinsky.  n generals, communicating through messengers  some of the generals (up to m) might be traitors  all loyal generals should.
HandoutLecture 10Malfunction Diagnosis Finding an Impostor There are three people of a certain profession (say, medical doctors) in a room, but one of.
Chapter 8 Linear Regression © 2010 Pearson Education 1.
Discrete Structure Li Tak Sing( 李德成 ) Lectures
Byzantine Generals Problem: Solution using signed messages.
Mar. 2005Measurement PuzzlesSlide 1 Measurement Puzzles A Lesson in the “Math + Fun!” Series.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
May 2015Binary SearchSlide 1 Binary Search A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
Nov Malfunction Diagnosis and Tolerance Slide 1 Fault-Tolerant Computing Dealing with Mid-Level Impairments.
HandoutJune 2007Malfunction Diagnosis A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
May 2007Task SchedulingSlide 1 Task Scheduling A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
Copyright © Zeph Grunschlag, Counting Techniques Zeph Grunschlag.
Apr. 2015SatisfiabilitySlide 1 Satisfiability A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
June 2007Malfunction DiagnosisSlide 1 Malfunction Diagnosis A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
Apr. 2007Placement and RoutingSlide 1 Placement and Routing A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
1 Lecture 25: Parallel Algorithms II Topics: matrix, graph, and sort algorithms Tuesday presentations:  Each group: 10 minutes  Describe the problem,
Mar. 2015Easy, Hard, Impossible!Slide 1 Easy, Hard, Impossible! A Lecture in CE Freshman Seminar Series: Puzzling Problems in Computer Engineering.
Nov. 2004Math and ElectionsSlide 1 Math and Elections A Lesson in the “Math + Fun!” Series.
Feb. 2005Counting ProblemsSlide 1 Counting Problems A Lesson in the “Math + Fun!” Series.
HandoutMay 2007Byzantine Generals A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
Jan. 2005Logical ReasoningSlide 1 Logical Reasoning A Lesson in the “Math + Fun!” Series.
Apr. 2007Easy, Hard, Impossible!Slide 1 Easy, Hard, Impossible! A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
May 2007Binary SearchSlide 1 Binary Search A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
May 2012Task SchedulingSlide 1 Task Scheduling A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
Apr. 2015Placement and RoutingSlide 1 Placement and Routing A Lecture in CE Freshman Seminar Series: Puzzling Problems in Computer Engineering.
Nov Malfunction Diagnosis and ToleranceSlide 1 Fault-Tolerant Computing Dealing with Mid-Level Impairments.
May 2007String MatchingSlide 1 String Matching A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
HandoutApr. 2007Satisfiability A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
Testing Hypotheses Tuesday, October 28. Objectives: Understand the logic of hypothesis testing and following related concepts Sidedness of a test (left-,
Called as the Interval Scheduling Problem. A simpler version of a class of scheduling problems. – Can add weights. – Can add multiple resources – Can ask.
Domain testing Tor Stålhane. Domain testing revisited We have earlier looked at domain testing as a simple strategy for selecting test cases. We will.
Chapter 8. Section 8. 1 Section Summary Introduction Modeling with Recurrence Relations Fibonacci Numbers The Tower of Hanoi Counting Problems Algorithms.
Algorithms CS139 – Aug 30, Problem Solving Your roommate, who is taking CS139, is in a panic. He is worried that he might lose his financial aid.
Descriptions of Debating
Lecture 11 Data Structures, Algorithms & Complexity Introduction Dr Kevin Casey BSc, MSc, PhD GRIFFITH COLLEGE DUBLIN.
Agenda Fail Stop Processors –Problem Definition –Implementation with reliable stable storage –Implementation without reliable stable storage Failure Detection.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 3, Lecture 1.
Chapter 10 Graph Theory Eulerian Cycle and the property of graph theory 10.3 The important property of graph theory and its representation 10.4.
ECE 753: FAULT-TOLERANT COMPUTING Kewal K.Saluja Department of Electrical and Computer Engineering System Diagnosis.
Relations And Functions. A relation is a set of ordered pairs {(2,3), (-1,5), (4,-2), (9,9), (0,-6)} This is a relation The domain is the set of all x.
Chap 15. Agreement. Problem Processes need to agree on a single bit No link failures A process can fail by crashing (no malicious behavior) Messages take.
1 Choosing a Computer Science Research Problem. 2 Choosing a Computer Science Research Problem One of the hardest problems with doing research in any.
1. 2 You should know by now… u The security level of a strategy for a player is the minimum payoff regardless of what strategy his opponent uses. u A.
Vertex Coloring Distributed Algorithms for Multi-Agent Networks
Main Menu Main Menu (Click on the topics below) Combinatorics Introduction Equally likely Probability Formula Counting elements of a list Counting elements.
May 2015Sorting NetworksSlide 1 Sorting Networks A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
Pass the Buck Every good programmer is lazy, arrogant, and impatient. In the game “Pass the Buck” you try to do as little work as possible, by making your.
Fundamentals of Informatics Lecture 12 The Halting Problem Bas Luttik.
1 Fault-Tolerant Consensus. 2 Communication Model Complete graph Synchronous, network.
Computational Learning Theory Part 1: Preliminaries 1.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
May 2007Sorting NetworksSlide 1 Sorting Networks A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering.
Lecture 22: Parallel Algorithms
3D Models from 2D Images A Lecture in the Freshman Seminar Series:
Satisfiability A Lecture in CE Freshman Seminar Series:
Sorting Networks A Lecture in CE Freshman Seminar Series:
3D Models from 2D Images A Lecture in the Freshman Seminar Series:
Easy, Hard, Impossible! A Lecture in CE Freshman Seminar Series:
Malfunction Diagnosis
Binary Search A Lecture in CE Freshman Seminar Series:
Presentation transcript:

May 2012Malfunction DiagnosisSlide 1 Malfunction Diagnosis A Lecture in CE Freshman Seminar Series: Ten Puzzling Problems in Computer Engineering

May 2012Malfunction DiagnosisSlide 2 About This Presentation This presentation belongs to the lecture series entitled “Ten Puzzling Problems in Computer Engineering,” devised for a ten-week, one-unit, freshman seminar course by Behrooz Parhami, Professor of Computer Engineering at University of California, Santa Barbara. The material can be used freely in teaching and other educational settings. Unauthorized uses, including any use for financial gain, are prohibited. © Behrooz Parhami EditionReleasedRevised First June 2007May 2008May 2009May 2010May 2012

Malfunction DiagnosisSlide 3

May 2012Malfunction DiagnosisSlide 4 Finding an Impostor There are three people of a certain profession (say, medical doctors) in a room, but one of them may be an impostor. Each person asks the other two a question that can determine whether the person is real. The six yes (pass) / no (fail) opinions are presented to a judge who must decide whether an impostor is present and, if so, who it is. How would the judge go about deciding? Somewhat similar to the fake coin puzzle A real person always arrives at the correct judgment about another one, but an imposter may render an incorrect judgment NY N--N YN Person assessed 123 AssessorAssessor Assessment matrix A Assessment matrix B --NY Y--N YN Person assessed 123 AssessorAssessor

May 2012Malfunction DiagnosisSlide 5 Impostors Around a Dinner Table At a round dinner table, n people of a certain profession (say, computer engineers) try to determine if there are impostors among them. Each asks the person to his or her right a question and renders a judgment. Assumptions are identical to the previous puzzle. How many impostors can be correctly identified? Repeat the puzzle above, but this time assume that each person asks a question of his/her neighbor on both sides Y Y Y Y Y Y Y Y No impostor Y Y N Y ? Y Y Y One impostor Y Y ? Y ? N Y Y Two impostors ???? Y NY N ?Y N ? Y YY Y NNNN Y NY N ?? ? ? Y NY N ???? Y NY N ?? ? ? Y NY N ???? Y YY Y NY N Y Y YY Y

May 2012Malfunction DiagnosisSlide 6 Analysis for a Given Set of Outcomes In each of the cases shown below, determine the smallest possible number of impostors that would be consistent with the shown outcome Y Y Y Y Y Y Y Y N N N N N N N N Y Y Y Y N N N N N N Y Y N Y Y N 0What is the largest possible number of non-impostors? B G B G G BB G Generalize to ring of arbitrary size, even or odd All Ns good All Ys bad: Is 4 smallest possible? ??? Generalize to ring of arbitrary even size

May 2012Malfunction DiagnosisSlide 7 Finding Impostors with Limited Questioning At a party, 10 people of a certain group (say, science-fiction writers) try to determine if there are impostors among them. Each person is asked a question by 2 different people and there are at most 3 impostors. Can the impostors be always correctly identified from the outcomes of the 20 questions? Solve the puzzle in the following two cases: Case 1: It is possible for persons A and B to ask each other questions Case 2: If A asks B a question, then B will not ask A a question Can’t be done. Ten people around a dinner table is a special case of this, because each person is questioned by his/her two neighbors. In that case, we determined that no more than 2 impostors can be identified Can’t be done. If you switch the reals and impostors in the 6-person cluster, exactly the same syndrome may be observed Another reason

May 2012Malfunction DiagnosisSlide 8 Malfunction Diagnosis Model Layered approach to self-diagnosis A small core part of a unit is tested Trusted core tests the next layer of subsystems Sphere of trust is gradually extended Diagnosis of one unit by another The tester sends a self-diagnosis request, expecting a response The unit under test eventually sends some results to the tester The tester interprets the results received and issues a verdict Testing capabilities among units is represented by a directed graph i Tester j Testee Test capability I think j is good (passed test) 0 i Tester j Testee Test capability I think j is bad (failed test} 1 The verdict of unit i about unit j is denoted by D ij  {0, 1} All the diagnosis verdicts constitute the n  n diagnosis matrix D Core

May 2012Malfunction DiagnosisSlide 9 One-Step Diagnosability Example Consider this system, with the test outcomes shown The system above is 1-step 1-diagnosable (we can correctly diagnose up to one malfunctioning unit in a single round of testing) M0M0 M1M1 M3M3 M2M2 D 01 D 12 D 30 D 23 D 20 D 13 Malfunction syndromes (x means 0 or 1) MalfnD 01 D 12 D 13 D 20 D 30 D 32 None M 0 x M 1 1 x x M x 0 1 M x x M 0,M 1 x x x M 1,M 2 1 x x x 0 1 Syndrome dictionary: OK M M M M M M M M M M M M 1

May 2012Malfunction DiagnosisSlide 10 Simple O(n 3 )-Step Diagnosis Algorithm Input: The diagnosis matrix Output: Every unit labeled G or B while some unit remains unlabeled repeat choose an unlabeled unit and label it G or B use labeled units to label other units if the new label leads to a contradiction then backtrack endif endwhile M0M0 M1M1 M3M3 M2M M 0 is G (arbitrary choice) M 1 is B M 2 is B (contradiction, 2 Bs) M 0 is B (change label) M 1 is G (arbitrary choice) M 2 is G M 3 is G More efficient algorithms exist Find a labeling of nodes (each designated G or B) that is consistent with the given test results 1-step 1-diagnosable

May 2012Malfunction DiagnosisSlide 11 Sequential t-Diagnosability An n-unit system is sequentially t-diagnosable if the diagnosis syndromes when there are t or fewer malfunctions are such that they always identify, unambiguously, at least one malfunctioning unit Necessary condition: n  2t + 1; i.e., a majority of units must be good This is useful because some systems that are not 1-step t-diagnosable are sequentially t-diagnosable, and they can be restored by removing the identified malfunctioning unit(s) and repeating the process This system is sequentially 2-diagnosable In one step, it is only 1-diagnosable Sequential diagnosability of directed rings: An n-node directed ring is sequentially t-diagnosable for any t that satisfies  (t 2 – 1)/4  + t + 2  n M0M0 M1M1 M4M4 M2M2 M3M3 D 01 D 12 D 34 D 23 D 40

May 2012Malfunction DiagnosisSlide 12 Syndromes for M 0 bad: Sequential 2-Diagnosability Example Consider this system, with the test outcomes shown The system above is sequentially 2-diagnosable (we can correctly diagnose up to two malfunctioning units, but only one at a time) Malfunction syndromes (x means 0 or 1) MalfnD 01 D 12 D 23 D 34 D 40 M 0 x M 1 1 x M x 0 0 M x 0 M x M 0,M 1 x x M 0,M 2 x 1 x 0 1 M 0,M 3 x 0 1 x 1 M 0,M 4 x x M0M0 M1M1 M4M4 M2M2 M3M3 D 01 D 12 D 34 D 23 D 40

May 2012Malfunction DiagnosisSlide 13 A Related Puzzle: Blue-Eyed Islanders Inhabitants of an island are blue-eyed or brown-eyed, but none of them knows the color of his/her own eyes, and must commit ritual suicide the next day at noon if s/he ever finds out. [Okay, this is silly, but don’t argue with the premises, such as there not being any mirrors, etc.; just view it as an exercise in logical reasoning.] The islanders are quite proficient in logical reasoning and won’t miss a chance to deduce their eye color, should there be enough info to do so. Unaware of the islanders’ traditions, which make discussing eye colors a taboo, a visitor giving a speech on the island begins his speech thus: “It’s so good to see someone else with blue eyes on this island.” What are the consequences of this faux-pas? Hint: Begin by thinking about what would happen if there were just one blue-eyed islander and build up to larger numbers of blue-eyed people.