1 Thinking in Objects and Classes © Datasim Education BV, 2010 All rights reserved. No part of this book may be reproduced, stored in a database or retrieval.

Slides:



Advertisements
Similar presentations
Knowledge Construction
Advertisements

Energy, energy flows, energy stores, cycles, and Complex Systems.
Posner and Keele; Rosch et al.. Posner and Keele: Two Main Points Greatest generalization is to prototype. –Given noisy examples of prototype, prototype.
Database Systems: Design, Implementation, and Management Tenth Edition
Abstraction Lecture-4. ADT example: London Underground Map.
Knowledge Representation
Cognitive - knowledge.ppt © 2001 Laura Snodgrass, Ph.D.1 Knowledge Structure of semantic memory –relationships among concepts –organization of memory –memory.
Chapter 7 Knowledge Terms: concept, categorization, prototype, typicality effect, object concepts, rule-governed, exemplars, hierarchical organization,
Cognitive Linguistics Croft&Cruse 4: Categories,concepts, and meanings, pt. 1.
Concepts and Categories. Functions of Concepts By dividing the world into classes of things to decrease the amount of information we need to learn, perceive,
Concepts and Categories. Functions of Concepts By dividing the world into classes of things to decrease the amount of information we need to learn, perceive,
Knowing Semantic memory.
Natural Categories Hierarchical organization of categories –Superordinate (e.g., furniture) –Basic-level (e.g., chair) –Subordinate (e.g., armchair) Rosch.
COGNITION AND LANGUAGE Pertemuan 6 Matakuliah: O0072 / Pengantar Psikologi Tahun: 2008.
Knowledge Representation and Organization
1 Lecture 2: Elaboration Tasks and Domain Modeling.
Copyright W. Howden1 Lecture 2: Elaboration Tasks and Domain Modeling.
Physical Symbol System Hypothesis
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
How do we store information for the long-term in memory?
Conceptual modelling. Overview - what is the aim of the article? ”We build conceptual models in our heads to solve problems in our everyday life”… ”By.
Cognitive Psychology, 2 nd Ed. Chapter 9 Learning Concepts and Skills.
Cognitive Psychology, 2 nd Ed. Chapter 8 Semantic Memory.
Chapter 1 The Systems Development Environment Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Roles of Knowledge in Cognition 1 Knowledge is often thought of as constituting particular bodies of facts, techniques, and procedures that cultures develop,
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
General Knowledge Dr. Claudia J. Stanny EXP 4507 Memory & Cognition Spring 2009.
Knowledge and Memory: How we conceptualize information.
CONCEPTS OF OBJECT ORIENTED PROGRAMMING. Topics To Be Discussed………………………. Objects Classes Data Abstraction and Encapsulation Inheritance Polymorphism.
Chapter 1 The Systems Development Environment Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Ashley H. Brock February 28 th, n Mandler, J. M. (1992). How to build a baby: II. Conceptual primitives. Psychological Review, 99, pp
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Requirements as Usecases Capturing the REQUIREMENT ANALYSIS DESIGN IMPLEMENTATION TEST.
PSY 323 – COGNITION Chapter 9: Knowledge.  Categorization ◦ Process by which things are placed into groups  Concept ◦ Mental groupings of similar objects,
44220: Database Design & Implementation Modelling the ‘Real’ World Ian Perry Room: C41C Ext.: 7287
Category Structure Psychology 355: Cognitive Psychology Instructor: John Miyamoto 05/20 /2015: Lecture 08-2 This Powerpoint presentation may contain macros.
What is a concept? Part of semantic memory (vs. episodic memory) A class of items that seem to belong together –‘dog’, ‘balloon’, ‘terrorist’ (things)
1 Chapter 1 Introduction to Databases Transparencies.
Long Term Memory: Semantic Kimberley Clow
Learners Support Publications Object Oriented Programming.
Categories What are categories? The internal structure of categories Rule-based approaches Similarity-based approaches Theory-based approaches.
Cognitive Processes PSY 334 Chapter 5 – Meaning-Based Knowledge Representation.
9-Dec Dec-15  INTRODUCTION.  FEATURES OF OOP.  ORGANIZATION OF DATA & FUNCTION IN OOP.  OOP’S DESIGN.
CHS AP Psychology Unit 7 Part II: Cognition Essential Task 7.1: Define cognition and identify how the following interact to form our cognitive life: schemata/concepts,
1 Lecture 15: Chapter 19 Testing Object-Oriented Applications Slide Set to accompany Software Engineering: A Practitioner’s Approach, 7/e by Roger S. Pressman.
September 1998HKU Mental Images The visual system encodes patterns of light and their inter-relationships Images in the visual system are partly created.
Lecture 2: Review of Object Orientation. © Lethbridge/La ganière 2005 Chapter 2: Review of Object Orientation What is Object Orientation? Procedural.
Concepts And Generic Knowledge
OOPS CONCEPT.  OOPS  Benefits of OOPs  OOPs Principles  Class  Object Objectives.
Taylor 4 Prototype Categories II. Two main issues: What exactly are prototypes? Do ALL categories have a prototype structure?
Verbal Representation of Knowledge
Lecture 8 – Categories 1 great detail is needed for planning & executing current responses some detail about context of new learning can be emcoded with.
Structure A Data structure is a collection of variable which can be same or different types. You can refer to a structure as a single variable, and to.
DBS201: Data Modeling. Agenda Data Modeling Types of Models Entity Relationship Model.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
Intelligent Database Systems Lab 國立雲林科技大學 National Yunlin University of Science and Technology Advisor : Dr. Hsu Graduate : Yu Cheng Chen Author: Michael.
Chapter 9 Knowledge. Some Questions to Consider Why is it difficult to decide if a particular object belongs to a particular category, such as “chair,”
Representational Hypotheses in Cognitive Psychology
Unit 7 Part II: Cognition
Prototype Categories: I
Chapter 7 Psychology: Memory.
Ontology From Wikipedia, the free encyclopedia
Early Contingency Theories of Effective Leadership
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
Chapter 12 Using Descriptive Analysis, Performing
System models October 5, 2005.
Software Design Lecture : 9.

The Classical Approach to Categorization
Categories My dog sleeping. My dog. All golden retrievers. All dogs. All canines. All mammals… Each of these is a category. Categorization is the process.
Presentation transcript:

1 Thinking in Objects and Classes © Datasim Education BV, 2010 All rights reserved. No part of this book may be reproduced, stored in a database or retrieval system, or published, in any form or in any way, electronically, mechanically, by print, photoprint, microfilm or any other means without prior written permission from Datasim Education BV.

2 Thinking in Objects and Classes Inheritance, Generalisation/Specialisation Modelling hierarchies of classes Important modelling technique in computational finance Essential when designing and implementing flexible C++ code Ability to create a general base class and specialise it to specific cases

3 Thinking in Objects and Classes Specialisation Process We create more specialised classes from more general classes The number of levels is infinite (in principle) Can create new and modified functionality at ever-increasing levels of detail This process is not without its dangers (more on this later)

4 Thinking in Objects and Classes A little Cognitive Psychology Cognitive economy: divide the world into classes of things to decrease the amount of information we must learn, remember, perceive We tend to categorise and classify the information around us Seek a balance between cognitive economy and informativeness

5 Thinking in Objects and Classes Categorization Heavily influenced by philosophy and logic (Locke, Frege) Object concepts are atomic units that we combine into more complex structures (molecules) Four defining views(and they can be implemented in C++) Defining attribute; prototype; exemplar; explanation-based view

6 Thinking in Objects and Classes Defining Attribute (Frege) A concept has a set of defining attributes or semantic features Distinguishes between a concept’s intension and extension Intension: defines what it means to be a member of the concept (class in C++) Extension: set of entities that are members of the concept (objects)

7 Thinking in Objects and Classes Consequences (1/2) 1. The meaning of a concept is captured by the conjunction (AND) of its attributes 2. Attributes are atomic units (primitives) and are the building blocks of concepts 3. Each attribute is necessary and all of them are jointly sufficient to define an instance of the concept

8 Thinking in Objects and Classes Consequences (2/2) 4. What is and what is not a member of the category is clearly defined (clear- cut boundaries between members and non-members) 5. All members of the concept are equally representative 6. Concept hierarchies: defining attributes of more specific concept are include DAs of the superordinate

9 Thinking in Objects and Classes Disadvantage of DA View Category members are not equally representative in real (C++!) life Concept boundaries tend to be changing The theory does not predict the three-level structure and basic-level categories Some attributes tend to be more important than others Concept instability What/how to find the defining attributes?

10 Thinking in Objects and Classes Prototype View Concepts have a prototype structure (the prototype is the best example of the concept) Collection of characteristic attributes No delimiting set of necessary or sufficient attributes needed to define concept membership (necessary but not sufficient) Concept boundaries are fuzzy; some instances may slip into other categories Instances ranged in terms of their typicality

11 Thinking in Objects and Classes Disadvantages Incomplete as an account of sort of knowledge people have about concepts People tend to know the relationships between attributes rather than just attributes alone Does not give a good account of what makes some categories natural and coherent

12 Thinking in Objects and Classes Exemplar-based View Instead of working top-down (from concept to instance) we take specific instances to ‘discover’ concepts We don’t look at all instances (Bird and has-wings versus crow, sparrow) The attributes are determined by which instance comes into mind Better than the prototype view (it preserves the variability of instances of a category)

13 Thinking in Objects and Classes Disadvantages of Exemplar Difficulty with inclusion questions (how to handle abstract knowledge) Example: “All birds are creatures” Exemplar view (like prototype) depends heavily on similarity Example: GUI controls in toolboxes

14 Thinking in Objects and Classes Explanation-based Views The other views are attribute-based There exist concepts that have very little similarities between attributes This view involves more than just attributes Concepts contain causal and other background knowledge (e.g. dangerous and non-dangerous animals)

15 Thinking in Objects and Classes Some Remarks Explanation view is more ‘dynamic’; concepts determined by actions Concepts can have attributes but relationships between the attributes) (example: light bones enable flight) Concept coherence comes from underlying knowledge of concepts, not from similarity alone (example; price and hedge derivatives)

16 Thinking in Objects and Classes Conceptual Hierarchies Can group concept into hierarchies (e.g. ‘is a chicken an animal?’) How do we determine the structure of conceptual hierarchies How many levels in the human cognitive system? People use about 3 levels (from biological studies)

17 Thinking in Objects and Classes The 3 Levels Superordinate (highest): general designations for very general concepts (e.g. furniture) Subordinate (lowest): specific types of objects (e.g. my favourite armchair) Basic (in-between): correspond to specific concepts (e.g. chair) Important later in C++ categories

18 Thinking in Objects and Classes Remarks Superordinate level tends to have few attributes Economy missing at the subordinate level (too many attributes conveyed) Most adults tend to start at the basic level (it’s the one acquired first by young children) Category members at basic level tend to have the same overall shape; can form a mental picture

19 Thinking in Objects and Classes Concept Instability Concept representation changes as a function of the context in which it appears Disastrous effects especially in concept hierarchies Problem is not so much attributes but behaviour Context-sensitive information

20 Thinking in Objects and Classes Relationships with C++ Developers employ these views when creating classes (implicitly, possibly) We need to know which choice we are making and what the consequences are Many legacy C++ systems are suffering on account of this ‘blind spot’ We discuss how to resolve these problems by using an appropriate design

21 Thinking in Objects and Classes Examples in C++ Orange: Payoff fig. 8.1; Errors 9.1 Multiple hierarchies 14.5 Binomial ‘jumps’, 15.4 FDM and PDE hierarchies, 16.1