Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

cao.............................................................................., Exercises of Computer Vision

numerical prolly hehe....................................

Typology: Exercises

2019/2020

Uploaded on 09/11/2021

yuvraj-wahi
yuvraj-wahi 🇮🇳

1 document

1 / 96

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Module 2 Data
Modeling
Entity Relationship Model : Types of Attributes, Relationship, Structural Constraints
Relational Model, Relational model Constraints –
Mapping ER model to a relational schema –
Integrity constraints
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60

Partial preview of the text

Download cao.............................................................................. and more Exercises Computer Vision in PDF only on Docsity!

Module 2 Data

Modeling

Entity Relationship Model : Types of Attributes, Relationship, Structural Constraints

Relational Model, Relational model Constraints –

Mapping ER model to a relational schema –

Integrity constraints

Database Design

  • Design of schema from the enterprise requirements
  • (^) Stages
    • (^) High level data model – interaction with

domain experts and users

  • Specification of user requirements
  • (^) Conceptual design phase
  • (^) Conceptual Schema (Functional requirements – operations on data)
  • (^) Logical design phase
  • Meta-data
  • (^) Physical design phase
  • (^) Choice of storage devices, indexing Requirements Gathering Conceptual Design Logical Design Physical Design Implementation Modelling ER Diagrams, Normalisation System Specific Data base schema File organization & Internal Storage Structures Meetings, Prototyping, Observation, Reverse Engineering, Survey Documents Views, Relations Tables – Attributes- Data types Physical Schema

Conceptual System Design contd.. Pitfall 1: Redundancy College Details

Conceptual System Design contd.. Pitfall 2: Incompleteness

ER Diagram - Entity sets

  • (^) A database can be modeled as:
    • (^) a collection of entities,
    • (^) relationships among entities.
  • (^) An entity is an object that exists and is distinguishable from other objects. Example: specific person, company, event, plant
  • (^) Entities have attributes Example: people have names and addresses - (^) An entity set is a set of entities of the same type that share the same properties. Example: set of all persons, companies, trees, holidays

Entity Sets customer and loan customer-id customer- customer- customer- loan- amount name street city number ENTITY SETS

ENTITIES
ENTITIES

Entity sets, Attributes in ER Diagram CUSTOMER_ID CUSTOMER_NAME CUSTOMER_STREET CUSTOMER_CITY

CUSTOMER
LOAN_NUMBER
AMOUNT
LOAN

Relationship sets

  • (^) Relationship
    • (^) Exist between entities (>2 entities)
    • (^) E.g Crick is advisor of Tanaka
  • (^) Relationship Set
    • (^) Set of relationships of same type
    • (^) Here - Advisor is a relationship set
  • (^) Multiple relationship sets are possible between entity sets - (^) Advisor, teaching_assistant are possible between entity sets instructor and student

Example – Advisor relationship set

  • (^) How many entity sets? 2
  • (^) How many entities? 6+
  • (^) How many relationship instances? 7
  • (^) Size of the relationship set- 7

Relationship set in an ER Diagram

  • (^) Relationship set – Diamond
  • (^) Entity sets has to be accompanied by attributes when it appears first time in a ER diagram
  • (^) A relationship set appears only once in an ER diagram

Attributes in a relationship set and Multiple relationship sets

  • (^) Descriptive attributes
  • (^) Symbol – undivided rectangle
  • (^) For more than 1 grade – the descriptive attribute will be multivalued ‘grades’

Attribute Types

  • (^) Simple and Composite
    • Composite – divided into parts (name – first
name, middle name, last name)
  • (^) Single and multivalued
    • (^) Single valued for an entity (Roll number of a
particular employee)
  • (^) Multi valued (Phone number of a particular
employee)
  • (^) Derived
    • (^) Age derived from DOB
  • (^) Value Null for an attribute indicates NA

(not applicable) or missing

  • (^) ID – Cannot be null Multivalued Derived

Total and Partial Participation

  • (^) Total Participation
  • (^) The participation of an entity set E in a relationship set R is said to be total if every entity in E must participate in at least one relationship in R.
  • (^) Every student must have an advisor (indicated by double line) – Total participation
  • (^) Instructor may not advise any student (single line) – Partial Participation

Cardinality limits on relationship sets

  • (^) Indicates the number of times each entity participates in relationships in A relationship set in the form l..h (l-lower limit, h – upper limit). * - no limit
  • (^) Instructor can take any number of students
  • (^) Student can have exactly one instructor