Cracking a Logical Puzzle with ROSETTA

Similar documents
Greatest Common Factor and Least Common Multiple

8 Simple Tips for Management in Microsoft Outlook

Kaldeera Workflow Designer 2010 User's Guide

Step 6: Conversion to PDF

DATA MINING PROCESS FOR UNBIASED PERSONNEL ASSESSMENT IN POWER ENGINEERING COMPANY

Enumerating possible Sudoku grids

NINTEX WORKFLOW TIPS AND TRICKS. Eric Rhodes

PERCENTS - compliments of Dan Mosenkis

Kenken For Teachers. Tom Davis June 27, Abstract

Using the SAS Enterprise Guide (Version 4.2)

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.

Cambridge English: First (FCE) Frequently Asked Questions (FAQs)

6.080/6.089 GITCS Feb 12, Lecture 3

Skype for Business Online Meetings

1. I have 4 sides. My opposite sides are equal. I have 4 right angles. Which shape am I?

AdSysTech Version 5. Swipe Card Manual. Written and Provided by the Pikes Peak United Way Community Information System Team

Working with whole numbers

An Introduction to Excel Pivot Tables

NØGSG DMR Contact Manager

Most of your tasks in Windows XP will involve working with information

Netigate User Guide. Setup Introduction Questions Text box Text area Radio buttons Radio buttons Weighted...

An Introduction to Number Theory Prime Numbers and Their Applications.

Top 10 Coaching Tips for Mock Trial Witnesses

Everything you wanted to know about using Hexadecimal and Octal Numbers in Visual Basic 6

TM SysAid Chat Guide Document Updated: 10 November 2009

Module One: Getting Started Opening Outlook Setting Up Outlook for the First Time Understanding the Interface...

Unit 6 Number and Operations in Base Ten: Decimals

SQL Server 2005: Report Builder

ReSound Unite TV FREQUENTLY ASKED QUESTIONS. Setup & Configuration. Use & Operation. Troubleshooting

Microsoft Outlook 2007 Calendar Features

Building Qualtrics Surveys for EFS & ALC Course Evaluations: Step by Step Instructions

Section 5 Icons and Shortcuts

Towards a Practical Approach to Discover Internal Dependencies in Rule-Based Knowledge Bases

Catch Me If You Can. ESL Lesson Package. eslmovielesson.com

Study Guide for the Music: Content Knowledge Test

The GMAT Guru. Prime Factorization: Theory and Practice

Introduction To Microsoft Office PowerPoint Bob Booth July 2008 AP-PPT5

Programming Tricks For Reducing Storage And Work Space Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA.

THE EF ENGLISHLIVE GUIDE TO: Dating in English TOP TIPS. For making the right impression

Teachers should read through the following activity ideas and make their own risk assessment for them before proceeding with them in the classroom.

How to Create a Campaign in AdWords Editor

Session 6 Number Theory

Factorizations: Searching for Factor Strings

Integrated Invoicing and Debt Management System for Mac OS X

Search Engine Optimization Checklist

Grade 7 & 8 Math Circles October 19, 2011 Prime Numbers

IT Quick Reference Guides Sharing, Delegation and Multiple Accounts

I N S T R U C T I O N S A N D I N F O R M A T I O N

Unit 7 The Number System: Multiplying and Dividing Integers

Creating and Using Data Entry Forms

Bitrix Site Manager 4.1. User Guide

Binary Adders: Half Adders and Full Adders

Create and Manage Discussion Forums and Threads

Extend Table Lens for High-Dimensional Data Visualization and Classification Mining

Text Analytics Illustrated with a Simple Data Set

How to Create an Out-of-Control Viral Marketing Campaign!

Tapescript. B Listen and write the words. C Help the baby spider. Draw a red line. D Help the baby frog. Listen and draw a green line.

Session 7 Bivariate Data and Analysis

Eloqua Discover Frequently Asked Questions

Windows XP Pro: Basics 1

Preparing a Simple Project Plan with MS Project

Bitrix Site Manager 4.0. Quick Start Guide to Newsletters and Subscriptions

Session 7 Fractions and Decimals

Cubes and Cube Roots

How to Store Multiple Documents in a Single File

Getting started with the Stata

Introduction to ArcView 3.2a

Publishing papers in international journals

Macintosh: Microsoft Outlook Web Access

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

Editors Comparison (NetBeans IDE, Eclipse, IntelliJ IDEA)

OA3-10 Patterns in Addition Tables

CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team

Lesson 4. Factors and Multiples. Objectives

Writing Maintainable Automated Acceptance Tests

How to write a Part III Essay: From Outline to Essay

Integrated Accounting System for Mac OS X

Magic Word. Possible Answers: LOOSER WINNER LOTTOS TICKET. What is the magic word?

Writing Thesis Defense Papers

User research for information architecture projects

Uni Sales Analysis CRM Extension for Sage Accpac ERP 5.5

Keep your English up to date 4. Teacher s pack Lesson plan and student worksheets with answers. Facebook

(Refer Slide Time: 2:03)

The VB development environment

ECON 459 Game Theory. Lecture Notes Auctions. Luca Anderlini Spring 2015

Five daily lessons. Page 8 Page 8. Page 12. Year 2

Handouts for teachers

warpct.com Basic Computer Skills MS Windows XP Workbook courseware by WARP! Computer Training

COMP3420: Advanced Databases and Data Mining. Classification and prediction: Introduction and Decision Tree Induction

How to get the most out of Windows 10 File Explorer

Why EVM Is Not Good for Schedule Performance Analyses (and how it could be )

The goal with this tutorial is to show how to implement and use the Selenium testing framework.

TUTORIAL: BOARDMAKER STUDIO START-UP

Restorative Parenting: A Group Facilitation Curriculum Activities Dave Mathews, Psy.D., LICSW

Adding A Student Course Survey Link For Fully Online Courses Into A Canvas Course

Market Research. Market Research: Part II: How To Get Started With Market Research For Your Organization. What is Market Research?

Welcome to the topic on Master Data and Documents.

INTEGRATED SKILLS TEACHER S NOTES

What you should know about: Windows 7. What s changed? Why does it matter to me? Do I have to upgrade? Tim Wakeling

Transcription:

Cracking a Logical Puzzle with ROSETTA Aleksander Øhrn Knowledge Systems Group Dept. of Computer and Information Science Norwegian University of Science and Technology Trondheim, Norway aleks@idi.ntnu.no Abstract This note briefly describes how ROSETTA can be used to solve a small logical puzzle. 1 Introduction The ROSETTA toolkit [4, 5, 6, 2] for discernibility-based data analysis is usually employed for supervised learning purposes. However, ROSETTA can also be used as a general tool for solving logical puzzles of a certain kind. This document provides a small example of how this can be accomplished. 2 The Puzzle Consider the following logical puzzle, taken from [9]: The police commissioner explained, We re trying to crack a major drug cartel. Commissioner Bratt is well known for his work in bringing down New York crime. It s less well known that he has been a frequent visitor to Ecco s apartment over the years. We re using informants, but these guys are rewarded for their information, so they tend to, well, dissemble. That means lie, doesn t it? Liane asked with a smile. Well, yes, young lady, Bratt said after a brief pause, but these are the best we could get. This cartel is one of the smoothest and smartest we ve ever seen. It s run out of Argentina, with offices all over Bolivia. You ve met the chief, Ecco, I think, Bratt continued. The professor here talked about Solaris (also known as El Jefito, because of his diminutive size) is his monograph Codes, Puzzles, and Conspiracy. You met him at the Casino in Punta del Este. You never figured out his role in Baskerhound s escapades, unfortunately. Ah, yes, the Rhodes Scholar wrestler with a weakness for bimbos, Ecco said with a smile. Right. Especially ones wearing tightfitting clothes, the Commissioner responded. Some of those beauties figure among our informants. Well, how many informants are there altogether? Ecco asked. Twenty, said the Commissioner. I think he has turned some of them, but not most, I hope. The result, however, is that we now have some informants calling other ones liars. We don t know whom to trust. The thing is, we have vetted these informants carefully, so we think that not more than five have turned, though it may be as many as eight, Bratt said. So, you know neither who lies, nor how many? asked Liane in a slightly mocking tone. Bratt glared at her, but nodded. That s right. It could be any of them. Can you tell us who accuses whom? Ecco asked. Bratt laid out a list (changing the names for obvious reasons): 1

Accuser Dave Alan Tom Emily Dave Accused Alan Nick Rivera Rivera Bob Well, Liane, Ecco said. What do you make of the situation? I need some more clarification, she replied. Commissioner Bratt, am I correct in drawing the following inferences? Suppose X accuses Y of lying: At least one is a liar. If we know that X tells the truth, then Y is a liar. If we know that Y tells the truth, then X is a liar. If X lies, then his accusations may or may not be true. Absolutely our thinking, said the Commissioner, visibly impressed. The last point is particularly important. Lying informants may still point the finger at other liars. Also, we don t fault truth-tellers for failing to accuse liars. They simply may not know enough. And our job, Liane went on, is to find the smallest set of liars that explain all these accusations? Right again, Bratt said, as he glanced anxiously at Ecco. Ecco nibbled at a scone and stared at the list. Liane doodled while she looked at it. After a few minutes, Ecco wrote eight names on a post-it and handed it to the Commissioner. Here are a set of eight liars who could explain all these accusations. Liane, did I make a mistake? Can you solve the problem with fewer liars? I m not sure, Liane said. There have to be at least six, though. Reader, your puzzle: First, why do there have to be at least six? Second, are eight liars a sufficient number to explain all these accusations? If so, which eight? Could there be fewer? If so, who would they be? 2

3 The Solution The puzzle can probably be solved in a number of different ways. The key to using ROSETTA to crack the puzzle lies in viewing it as a Boolean minimization problem [1]. Let (X i, Y i ) be an accusation pair in Commissioner Bratt s table. According to Liane s and the Commissioner s reasoning, at least one of X i and Y i is a liar, possibly both. Then, there has to be at least eight liars because there are the following non-overlapping pairs: Accuser Dave Tom Emily Accused Alan Rivera Next, we observe that the set of lying informants is defined through the list of accusations. Since at least one of the informants in each accusation pair (X i, Y i ) must be a liar, we can construct a Boolean POS function f that expresses what the set of lying informants must be. This is done in Equation 1, where X i and Y i are Boolean variables corresponding to X i and Y i, respectively. f = 30 i=1 (X i + Y i ) (1) The crucial observation to make is that a minimal set of liars is determined by a prime implicant of f. These prime implicants can be computed by ROSETTA. 3.1 ROSETTA GUI Preliminaries For this case study, the following ROSETTA GUI details are worth noting: An information system can be read into a new ROSETTA project by selecting Open... from the main File menu, and will be placed immediately below the root of the Structures node in the project tree. Branches in the project tree can be expanded or collapsed by left-clicking on the or symbols next to the icons. Right-clicking on an icon in the project tree brings up a pop-up menu for that object. In the following, the symbol will be used to denote menu navigation. Left-clicking twice on an icon in the project tree can be used as a shortcut for viewing that object in detail. To rename an object, first left-click once on its icon to select it. Then left-click once more on the icon s label. The icon s label is edited directly in place. To view progress messages and warnings, select Messages from the main View menu. 3.2 Required Steps The steps required to solve the logical puzzle with ROSETTA are as follows: First, define f and import this definition into ROSETTA as a binary information system. Then, compute reducts relative to the first object in the table. The solutions are obtained by examining the resulting reduct set. For details on this process, see [3]. 3

Liars = (petra + gwenyth) * (sam + larry) * (hillary + petra) * (olivia + petra) * (gwenyth + alan) * (dave + mike) * (isaac + nick) * (hillary + kris) * (sam + jack) * (sam + rivera) * (gwenyth + mike) * (olivia + ulm) * (jack + larry) * (jack + sam) * (alan + larry) * (isaac + mike) * (hillary + ulm) * (ulm + larry) * (gwenyth + jack) * (gwenyth + olivia) * (olivia + kris) * (larry + mike) * (tom + hillary) * (emily + isaac) * (petra + rivera) * (mike + larry) * (dave + ulm) * (hillary + bob) * (larry + hillary) * (gwenyth + kris) end Table 1: A definition of a POS function in ROSETTA format. ROSETTA can import this function as a binary decision system [3]. The above outlined procedure can be executed either through writing a ROSETTA script that automates the process, or by carrying out the steps manually in the ROSETTA GUI. Using the ROSETTA GUI, do the following, starting from a new project: 1. Create an ASCII file containing our Boolean function defined in a format that ROSETTA can read. This is done in Table 1. In the following, this file will be referred to as liars.txt. 2. Import the function into ROSETTA. Load... Use the following parameters: FILENAME = liars.txt; The system will automatically detect that the file is in a non-native format, and query you for the file type. Specify ROSETTA POS function format. Upon success, a decision system will appear in the project tree. 3. Compute all reducts relative to the first object in the decision system. Reduce Exhaustive calculation (RSES)... Use the following parameters: DISCERNIBILITY = Object; SELECTION = Index; MODULO.DECISION = True; SELECTION.INDEX = 0; Upon success, a set of reducts with an associated set of rules will appear in the project tree. 4

4. Solutions to the logical puzzle are obtained by viewing the set of reducts. View... The prime implicants of the function can be sorted according to length by right-clicking the Length column in the grid view. Our Boolean function has 42 prime implicants in all, i.e., there are 42 different minimal set of liars that can explain all the accusations that are made. We can obtain some statistics by invoking the following: Statistics... Items in list views can be sorted by left-clicking the key column. We see that we have 3 prime implicants of length 8, 5 of length 9, 15 of length 10, 11 of length 11, 6 of length 12 and 2 of length 13. It is the shortest prime implicants, i.e., those of length 8 that interest Commissioner Bratt. The minimal sets of liars that correspond to these are: {,,,,,, Dave, } {,,,, Dave,,, Rivera} {,,,,, Dave,, Rivera} It might be interesting to see how often each informant occurs across the set of possible minimal sets. This information could be used, e.g., by Commissioner Bratt to quantify the degree of belief he has in each of the informants being a liar. If an informant occurs in very many of the 42 possible minimal sets, then it might be perceived as likely that the informant is a liar. Conversely, if an informant occurs in very few of the 42 possible minimal sets, then the informant is likely to be a truth-teller. Examining our set of prime implicants in this way, we obtain the following ranking: Informant Count Bob 10 out of 42 Tom 10 out of 42 Dave 14 out of 42 Alan 18 out of 42 32 out of 42 32 out of 42 32 out of 42 34 out of 42 35 out of 42 Acknowledgments This work was supported in part by the Norwegian Research Council under grant 74467/410. References [1] F. M. Brown. Boolean Reasoning: The Logic of Boolean Equations. Kluwer Academic Publishers, Dordrecht, The Netherlands, 1990. 5

[2] A. Øhrn. Discernibility and Rough Sets in Medicine: Tools and Applications. PhD thesis, Norwegian University of Science and Technology, Department of Computer and Information Science, Dec. 1999. NTNU report 1999:133. [http://www.idi.ntnu.no/~aleks/thesis/]. [3] A. Øhrn. ROSETTA Technical Reference Manual. Knowledge Systems Group, Department of Computer and Information Science, NTNU, Trondheim, Norway, Nov. 1999. [4] A. Øhrn and J. Komorowski. ROSETTA: A rough set toolkit for analysis of data. In Wang [10], pages 403 407. [5] A. Øhrn, J. Komorowski, A. Skowron, and P. Synak. The design and implementation of a knowledge discovery toolkit based on rough sets: The ROSETTA system. In Polkowski and Skowron [7], chapter 19, pages 376 399. [6] A. Øhrn, J. Komorowski, A. Skowron, and P. Synak. The ROSETTA software system. In Polkowski and Skowron [8], pages 572 576. [7] L. Polkowski and A. Skowron, editors. Rough Sets in Knowledge Discovery 1: Methodology and Applications, volume 18 of Studies in Fuzziness and Soft Computing. Physica-Verlag, Heidelberg, Germany, 1998. [8] L. Polkowski and A. Skowron, editors. Rough Sets in Knowledge Discovery 2: Applications, Case Studies and Software Systems, volume 19 of Studies in Fuzziness and Soft Computing. Physica-Verlag, Heidelberg, Germany, 1998. [9] D. E. Shasha. Beautiful liars. Dr. Dobb s Journal, page 121, June 1998. Dr. Ecco s Omniheurist Corner. [10] P. P. Wang, editor. Proc. Third International Joint Conference on Information Sciences, volume 3, Durham, NC, Mar. 1997. 6