Modelling states of a computing system aware of an aspect of context Krunoslav Peter Andrija Stampar Teaching Institute of Public Health INFuture2015.

Slides:



Advertisements
Similar presentations
Chapter 5 Pushdown Automata
Advertisements

CS 208: Computing Theory Assoc. Prof. Dr. Brahim Hnich Faculty of Computer Sciences Izmir University of Economics.
Sahar Mosleh PageCalifornia State University San Marcos 1 Introductory Concepts This section of the course introduces the concept of digital circuits and.
Nondeterministic Finite Automata CS 130: Theory of Computation HMU textbook, Chapter 2 (Sec 2.3 & 2.5)
Modeling Human Reasoning About Meta-Information Presented By: Scott Langevin Jingsong Wang.
Finite Automata Section 1.1 CSC 4170 Theory of Computation.
Chapter Section Section Summary Set of Strings Finite-State Automata Language Recognition by Finite-State Machines Designing Finite-State.
1 Introduction to Computability Theory Lecture3: Regular Expressions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture4: Regular Expressions Prof. Amos Israeli.
Finite Automata Finite-state machine with no output. FA consists of States, Transitions between states FA is a 5-tuple Example! A string x is recognized.
1 Finite Automata. 2 Finite Automaton Input “Accept” or “Reject” String Finite Automaton Output.
CS 310 – Fall 2006 Pacific University CS310 Finite Automata Sections: September 1, 2006.
Foundations of (Theoretical) Computer Science Chapter 2 Lecture Notes (Section 2.2: Pushdown Automata) Prof. Karen Daniels, Fall 2009 with acknowledgement.
Lecture 6 & 7 System Models.
1 Foundations of Software Design Lecture 23: Finite Automata and Context-Free Grammars Marti Hearst Fall 2002.
Introduction to the Theory of Computation John Paxton Montana State University Summer 2003.
Finite Automata Costas Busch - RPI.
Grammars, Languages and Finite-state automata Languages are described by grammars We need an algorithm that takes as input grammar sentence And gives a.
Lesson-21Process Modeling Define systems modeling and differentiate between logical and physical system models. Define process modeling and explain its.
Nondeterminism (Deterministic) FA required for every state q and every symbol  of the alphabet to have exactly one arrow out of q labeled . What happens.
Smart Learning Services Based on Smart Cloud Computing
Rosen 5th ed., ch. 11 Ref: Wikipedia
Nondeterministic Finite Automata CS 130: Theory of Computation HMU textbook, Chapter 2 (Sec 2.3 & 2.5)
Lecture 23: Finite State Machines with no Outputs Acceptors & Recognizers.
A service-oriented middleware for building context-aware services Center for E-Business Technology Seoul National University Seoul, Korea Tao Gu, Hung.
Theory of Computation, Feodor F. Dragan, Kent State University 1 Regular expressions: definition An algebraic equivalent to finite automata. We can build.
Introduction to CS Theory Lecture 3 – Regular Languages Piotr Faliszewski
Theory of Computation - Lecture 3 Regular Languages What is a computer? Complicated, we need idealized computer for managing mathematical theories... Hence:
IntroductionRelated work 2 Contents Publish/Subscribe middleware Conclusion and Future works.
1 Course Overview PART I: overview material 1Introduction 2Language processors (tombstone diagrams, bootstrapping) 3Architecture of a compiler PART II:
2. Regular Expressions and Automata 2007 년 3 월 31 일 인공지능 연구실 이경택 Text: Speech and Language Processing Page.33 ~ 56.
Kleene’s Theorem Group No. 3 Presented To Mam Amina Presented By Roll No Roll No Roll No Roll No Group No. 3 Presented To Mam.
CHAPTER 1 Regular Languages
Copyright © Curt Hill Finite State Machines The Simplest and Least Capable Automaton.
Electrical and Computer Engineering University of Cyprus LAB 1: VHDL.
Finite Automata – Definition and Examples Lecture 6 Section 1.1 Mon, Sep 3, 2007.
Introduction of Intelligent Agents
CS1Q Computer Systems Lecture 11 Simon Gay. Lecture 11CS1Q Computer Systems - Simon Gay 2 The D FlipFlop The RS flipflop stores one bit of information.
Srinivas Cheekati( ) Instructor: Dr. Dong-Chul Kim
CSCI 115 Chapter 8 Topics in Graph Theory. CSCI 115 §8.1 Graphs.
Deterministic Finite Automata CS 130: Theory of Computation HMU textbook, Chapter 2 (Sec 2.2)
Natural Language Processing Lecture 4 : Regular Expressions and Automata.
Finite State Machines 1.Finite state machines with output 2.Finite state machines with no output 3.DFA 4.NDFA.
UNIT - I Formal Language and Regular Expressions: Languages Definition regular expressions Regular sets identity rules. Finite Automata: DFA NFA NFA with.
21/1/ Analysis - Model of real-world situation - What ? System Design - Overall architecture (sub-systems) Object Design - Refinement of Design.
WHAT IS THIS? Clue…it’s a drink SIMPLE SEQUENCE CONTROL STRUCTURE Introduction A computer is an extremely powerful, fast machine. In less than a second,
Formal Languages Finite Automata Dr.Hamed Alrjoub 1FA1.
Theory of Computation Automata Theory Dr. Ayman Srour.
Akram Salah ISSR Basic Concepts Languages Grammar Automata (Automaton)
Turing Machine Model Are there computations that no “reasonable” computing machine can perform? –the machine should not store the answer to all possible.
Turing Machines CS 130 Theory of Computation HMU Textbook: Chap 8.
Theory of Computation Automata Theory Dr. Ayman Srour.
Theory of Computation Automata Theory Dr. Ayman Srour.
Fall 2004COMP 3351 Finite Automata. Fall 2004COMP 3352 Finite Automaton Input String Output String Finite Automaton.
Deterministic Finite-State Machine (or Deterministic Finite Automaton) A DFA is a 5-tuple, (S, Σ, T, s, A), consisting of: S: a finite set of states Σ:
WELCOME TO A JOURNEY TO CS419 Dr. Hussien Sharaf Dr. Mohammad Nassef Department of Computer Science, Faculty of Computers and Information, Cairo University.
Introduction to Automata Theory Theory of Computation Lecture 3 Tasneem Ghnaimat.
CSCI 2670 Introduction to Theory of Computing
Finite State Machines Dr K R Bond 2009
Lecture2 Regular Language
CIS Automata and Formal Languages – Pei Wang
Compilers Welcome to a journey to CS419 Lecture5: Lexical Analysis:
Modeling Arithmetic, Computation, and Languages
CS314 – Section 5 Recitation 3
Two issues in lexical analysis
Finite Automata & Regular Languages
Principles of Computing – UFCFA3-30-1
CSC 4170 Theory of Computation Finite Automata Section 1.1.
Lesson 3.3 Writing functions.
Presentation transcript:

Modelling states of a computing system aware of an aspect of context Krunoslav Peter Andrija Stampar Teaching Institute of Public Health INFuture2015

Introduction (1/2) a modern computing system – responsive to its context a system aware of a single aspect of context senses states of an aspect of context changes its state accordingly modelled by using a finite-state automaton the state-transition table → set of decision rules of the decision-making subsystem

Introduction (2/2) a simple and technology-independent approach to the problem of implementing the decision-making subsystem the title slide + 12 slides errata instead of „dependent” must be „independent” in the Introduction instead of „system itself” should be „the system itself” in the Context section instead of „ connected or disconnected to” must be „either connected to or disconnected from” in the Context section

Context (1/2) information about system’s environment and the system itself information such as network connectivity, communication costs, light conditions, location etc. the aspect of context sensors → acquiring context

Context (2/2) 1.a discrete aspect of context – for example, network connectivity (connected to or disconnected from a network) elements of the alphabet of states: { connected, disconnected } a sequence of discrete states – a word of a regular language – the regular expression: disconnected (connected disconnected)* 2.a continuous aspect of context – for example, noise threshold = 80 dB: “normal” (< 80 dB) and “loud” noise (≥ 80 dB) the regular language: (normal + loud)*

Context-aware system differences between traditional and context-aware computing main functionality – user input and system's output utilizes contextual information and adapts to its context → three additional functionalities of a context-aware system: sensing, reasoning and acting the three subsystems of an abstract architecture of context-aware system: user input →main system→ output context →sensing subsystem thinking subsystem (decision-making subsystem) acting subsystem→ adaptation

Finite-state automaton (FSA) an appropriate model for a system aware of an aspect of context an FSA is a 5-tuple (S, Σ, δ, s 0, F), where S – a finite set of states Σ – an alphabet δ – the state-transition function δ: S x Σ → S s 0 – the start state F – a set of accepting states the state-transition function – represented as a state-transition table the FSA M accepts the language L(M) – a regular language

Specifying adaptive behaviour (1/2) adaptive behaviour of a system aware of the aspect C of context → like an FSA (S, Σ, δ, s 0, F), where S – a finite set of system’s states Σ – a finite set of states of the aspect C of context δ – the state-transition function δ: S x Σ → S s 0 – the initial state F – a set of system’s final states

Specifying adaptive behaviour (2/2) Example 1 – the system M 1 is aware of noise conditions senses noise conditions every second behaviour: if (noise is “loud”) then (system’s sound is “loud”) recognizes language L(M 1 ): (normal + loud)* defined as the FSA M 1 ({ volume 1, volume 2 }, { normal, loud }, δ, { volume 1 }, { volume 1, volume 2 }), with a state-transition table (Table 1) Table 1 – the state-transition table of the FSA M 1 δnormalloud volume 1 volume 2 volume 1 volume 2

Implementing a system aware of one aspect of context (1/2) the sensing subsystem → a discrete value the thinking subsystem a discrete value → the context variable system’s state → the state variable the acting subsystem – triggered by assigning a value to the state variable different from the previous value

Implementing a system aware of one aspect of context (2/2) Example 2 – the state-transition table of the FSA M 1 → decision rules Input: state, context if (state == “volume 1 ” and context == “normal”) then state = “volume 1 ” if (state == “volume 1 ” and context == “loud”) then state = “volume 2 ” if (state == “volume 2 ” and context == “normal”) then state = “volume 1 ” if (state == “volume 2 ” and context == “loud”) then state = “volume 2 ” Output: state if (State and Context) then State corresponds to δ: S x Σ → S a state-transition table for any aspect of context

Other approaches first-order logic-based formalisms to represent context and situations, and rules that map situations to required actions an approach inspired by biological processes, such as the human nervous system learning about and adapting to dynamical context and user behaviour

Conclusion modelling a system aware of an aspect of context like a finite-state automaton helps a developer of a system to systematically define context’s and system’s states adaptation to an aspect of context – in the form of the state-transition table → the set of decision rules of the thinking subsystem