• Bài giảng Database systems - Functional dependencies & normalizationBài giảng Database systems - Functional dependencies & normalization

     Further Reading: [1] Chapter 15 & 16  4NF: based on multivalued dependency (MVD).  5NF: based on join dependency.  Such a dependency is very difficult to detect in practice.  Normalization into 5NF is considered very rarely in practice.  Other normal forms & algorithms.  ER modeling: top-down database design.  Bottom-up database des...

    pdf71 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 3031 | Lượt tải: 1

  • Bài giảng Database systems - Structured query language (SQL)Bài giảng Database systems - Structured query language (SQL)

    VIEW (6)  Views defined on multiple tables using joins are generally not updatable.  Views defined using grouping and aggregate functions are not updatable.  The clause WITH CHECK OPTION must be added at the end of the view definition if a view is to be updated.  An in-line view: the view is defined in the FROM clause of an SQL query.

    pdf102 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 2684 | Lượt tải: 1

  • Bài giảng Cấu trúc dữ liệu và giải thuật (đầy đủ)Bài giảng Cấu trúc dữ liệu và giải thuật (đầy đủ)

    Tìm kiếm trên BST Chọn hướng tìm theo tính chất của BST: So sánh với node gốc, nếu đúng thì tìm thấy Tìm bên nhánh trái (hay phải) nếu khóa cần tìm nhỏ hơn (hay lớn hơn) khóa của node gốc Giống phương pháp tìm kiếm nhị phân Thời gian tìm kiếm Tốt nhất và trung bình: O(lg n) Tệ nhất: O(n)

    ppt129 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1643 | Lượt tải: 1

  • Bài giảng Database systems - Relational data model (3)Bài giảng Database systems - Relational data model (3)

    Domain Relational Calculus (1)  The formal specification of the domain calculus was proposed after the development of the QBE language and system.  Domain calculus differs from tuple calculus in the type of variables used in formulas: the variables range over single values from domains of attributes.  To form a relation of degree n for a q...

    pdf60 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1721 | Lượt tải: 1

  • Bài giảng Database systems - Relational data model (2)Bài giảng Database systems - Relational data model (2)

     Step 9: Mapping of Union Types (Categories)  Create a new relation S for the category with a primary key.  Include any attributes of the category in S.  If superclasses have different keys:  Include a new key attribute, called surrogate key, as foreign key in each relation of the superclasses.  These foreign keys reference to the prima...

    pdf59 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 2050 | Lượt tải: 0

  • Bài giảng Database systems - Relational data modeBài giảng Database systems - Relational data mode

    Physical database design  The process of producing a description of the implementation of the database on secondary storage.  Describes the base relations, file organizations, and indexes design used to achieve efficient access to the data, and any associated integrity constraints and security measures.

    pdf48 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1953 | Lượt tải: 0

  • Bài giảng Database systems - Enhanced entityrelationship modelBài giảng Database systems - Enhanced entityrelationship model

    Exercise 3 (2)  Attic keeps track of its clients through the assigning of client numbers. They also keep track of clients’ names and addresses.  When Attic sells an item to a client, they need to keep track of the actual selling price, the date of the sale, and the sales tax.  When Attic buys an item, they wish to track the purchase cost, c...

    pdf61 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 2125 | Lượt tải: 0

  • Bài giảng Database systems - Entity-relationship modelBài giảng Database systems - Entity-relationship model

    Problems with ER Models (2)  Fan Trap  Where a model represents a relationship between entity types, but pathway between certain entity occurrences is ambiguous.  Usually: two or more 1:N relationships fan out from the same entity.  Chasm Trap  Where a model suggests the existence of a relationship between entity types, but pathway do...

    pdf73 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1793 | Lượt tải: 0

  • Bài giảng ECE 250 Algorithms and Data Structures - 6.02. AVL TreesBài giảng ECE 250 Algorithms and Data Structures - 6.02. AVL Trees

    AVL Trees as Arrays? We previously saw that: – Complete tree can be stored using an array using Q(n) memory – An arbitrary tree of n nodes requires O(2n) memory Is it possible to store an AVL tree as an array and not require exponentially more memory?

    pdf130 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1903 | Lượt tải: 2

  • Bài giảng ECE 250 Algorithms and Data Structures - 6.01. Binary search treesBài giảng ECE 250 Algorithms and Data Structures - 6.01. Binary search trees

    Summary In this topic, we covered binary search trees – Described Abstract Sorted Lists – Problems using arrays and linked lists – Definition a binary search tree – Looked at the implementation of: • Empty, size, height, count • Front, back, insert, erase • Previous smaller and next larger objects

    pdf82 trang | Chia sẻ: vutrong32 | Ngày: 17/10/2018 | Lượt xem: 1455 | Lượt tải: 2