1. Home
  2. Explore
  3. Computer Science
  4. Functional Dependencies

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Functional Dependencies

  • 75Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Functional Dependencies
A functional dependency stating that alpha determines beta means that any two tuples matching on alpha must also match on
.

75 questions

  1. 1
    A functional dependency stating that alpha determines beta means that any two tuples matching on alpha must also match on
    _____
    .
    Hint

    It is the attribute set on the right-hand side of the dependency.

    Answer

    beta

  2. 2
    A functional dependency is a constraint that must hold in every
    _____
    of the relational schema.
    Hint

    Think of a particular set of tuples that conforms to the schema.

    Answer

    instance

  3. 3
    The three basic Armstrong axioms are reflexivity, augmentation, and
    _____
    .
    Hint

    This rule chains one dependency into another.

    Answer

    transitivity

  4. 4
    The reflexivity axiom allows a dependency when the right-hand attribute set is a
    _____
    of the left-hand attribute set.
    Hint

    The rule covers dependencies that follow directly from attributes already present.

    Answer

    subset

  5. 5
    Under augmentation, if alpha determines beta, adding the same attributes to both sides gives a valid dependency; this is called
    _____
    .
    Hint

    It is the Armstrong axiom that extends both sides equally.

    Answer

    augmentation

  6. 6
    If alpha determines beta and beta determines gamma, transitivity gives the dependency alpha determines
    _____
    .
    Hint

    It is the right-hand side of the second dependency in the chain.

    Answer

    gamma

  7. 7
    The set of all functional dependencies derivable from a given set F is called the
    _____
    of F.
    Hint

    It includes the original dependencies and every dependency implied by them.

    Answer

    closure

  8. 8
    Armstrong's axioms are sound and complete: soundness means they derive only dependencies that are
    _____
    , while completeness means they can derive every dependency that follows.
    Hint

    A sound rule never produces a dependency that fails to hold.

    Answer

    valid

  9. 9
    When two dependencies have the same left-hand side, the derived rule that combines their right-hand sides is the rule of
    _____
    .
    Hint

    The rule joins the two right-hand attribute sets into one.

    Answer

    union

  10. 10
    The reverse of the union rule, which splits a dependency on a combined right-hand side into separate dependencies, is called
    _____
    .
    Hint

    It breaks one dependency into smaller right-hand sides.

    Answer

    decomposition

  11. 11
    From alpha determines beta and gamma together with beta determines delta, the derived rule gives gamma together with alpha determines delta; this rule is called
    _____
    .
    Hint

    It combines augmentation with a transitive chain.

    Answer

    pseudo-transitivity

  12. 12
    Union, decomposition, and pseudo-transitivity are derived rules: they are sound, but are not required for the
    _____
    of Armstrong's axioms.
    Hint

    The three original axioms already suffice to derive every implied dependency.

    Answer

    completeness

  13. 13
    Starting with A determines B and B determines C, transitivity lets us infer that A determines
    _____
    .
    Hint

    Follow the chain from A through B to its final attribute.

    Answer

    C

  14. 14
    In the larger example, A determines B and B determines H, so transitivity gives A determines
    _____
    .
    Hint

    It is the right-hand side of the second dependency in the chain.

    Answer

    H

  15. 15
    Augmenting A determines C with G gives the dependency AG determines
    _____
    .
    Hint

    Add G to both the original left-hand and right-hand sides.

    Answer

    CG

  16. 16
    Given AG determines CG and CG determines I, transitivity gives AG determines
    _____
    .
    Hint

    The intermediate attribute set is CG.

    Answer

    I

  17. 17
    From CG determines I, augmenting both sides with C and G yields CG determines
    _____
    .
    Hint

    The original right-hand side is joined by the attributes added through augmentation.

    Answer

    CGI

  18. 18
    Using union on CG determines CGI and CG determines HI gives CG determines
    _____
    .
    Hint

    Combine the two right-hand attribute sets, counting shared attributes only once.

    Answer

    CGHI

  19. 19
    A direct algorithm for computing F plus begins by initializing the set of known dependencies to
    _____
    .
    Hint

    At the start, no derived dependencies have been added yet.

    Answer

    F

  20. 20
    In the closure algorithm, reflexivity and augmentation are applied to individual dependencies, while transitivity is checked using every
    _____
    of dependencies.
    Hint

    Transitivity needs one dependency to lead into another.

    Answer

    pair

  21. 21
    The direct algorithm for F plus terminates because a finite schema has only a finite number of possible functional
    _____
    .
    Hint

    These are the statements the algorithm adds to its closure set.

    Answer

    dependencies

  22. 22
    The algorithm has reached F plus when applying its rules no longer changes the set of known
    _____
    .
    Hint

    The stopping condition is that no new statements are added.

    Answer

    dependencies

  23. 23
    The closure of an attribute set alpha with respect to F contains the attributes that alpha can functionally
    _____
    using F.
    Hint

    It describes the attributes reachable from alpha through the dependencies.

    Answer

    determine

  24. 24
    When computing alpha plus, the algorithm starts with the attributes in
    _____
    .
    Hint

    These attributes are already determined by themselves.

    Answer

    alpha

  25. 25
    While computing a closure, if beta is already in the current result and beta determines gamma, the algorithm adds
    _____
    to the result.
    Hint

    Use transitivity from the starting attributes through beta.

    Answer

    gamma

  26. 26
    The attribute-closure procedure repeats its scan of the dependencies until the result stops
    _____
    .
    Hint

    It ends when no more attributes can be added.

    Answer

    changing

  27. 27
    For the example dependencies, computing the closure of AG first gives the starting result
    _____
    .
    Hint

    The initial result is exactly the attribute set whose closure is being computed.

    Answer

    AG

  28. 28
    Because A is in the initial set AG, the dependencies A determines B and A determines C add
    _____
    and C to the closure.
    Hint

    It is the first right-hand attribute named in the two dependencies.

    Answer

    B

  29. 29
    Once the closure of AG contains C and G, the dependency CG determines H adds
    _____
    .
    Hint

    It is the right-hand attribute of the dependency whose left side is CG.

    Answer

    H

  30. 30
    After H has been added to the closure of AG, CG determines I allows the algorithm to add
    _____
    .
    Hint

    It is the other attribute inferred from the left side CG.

    Answer

    I

  31. 31
    A set of attributes is a super key if its closure contains every attribute of the relation; therefore, AG is a super key when AG plus contains all attributes of
    _____
    .
    Hint

    This symbol names the entire relation schema.

    Answer

    R

  32. 32
    To establish that a super key is a candidate key, one must also show that it is
    _____
    .
    Hint

    No proper subset should still be a super key.

    Answer

    minimal

  33. 33
    For AG, checking minimality requires testing whether either A alone or G alone is a
    _____
    .
    Hint

    Test the proper subsets of AG to see whether either already determines all attributes.

    Answer

    super key

  34. 34
    In the example, A plus contains ABCH but not every attribute of R, so A alone is not a
    _____
    .
    Hint

    A super key must cover all attributes of the relation.

    Answer

    super key

  35. 35
    Because G never appears on the right-hand side of any given dependency, no key for the relation can omit
    _____
    .
    Hint

    An attribute that cannot be derived must be included in any set that determines all attributes.

    Answer

    G

  36. 36
    Since neither A plus nor G plus contains all attributes of R, AG is a minimal super key and therefore a
    _____
    .
    Hint

    This is the name for a super key with no redundant attributes.

    Answer

    candidate key

  37. 37
    To test whether alpha determines beta under F, compute alpha plus and check whether it contains
    _____
    .
    Hint

    The test compares the closure with the proposed right-hand side.

    Answer

    beta

  38. 38
    The closure of attribute sets can also be used to compute F plus by finding the closure of each attribute set and recording the dependencies it determines; this offers an alternative that is described as more
    _____
    .
    Hint

    It can avoid repeatedly applying every inference rule to every dependency.

    Answer

    efficient

  39. 39
    A relation must already satisfy first normal form before it can be in Boyce-Codd Normal Form, abbreviated
    _____
    .
    Hint

    Use the standard abbreviation for Boyce-Codd Normal Form.

    Answer

    BCNF

  40. 40
    A relation is in BCNF if every dependency in the closure is trivial or has a left-hand side that is a
    _____
    for the relation.
    Hint

    The determinant must identify every tuple unless the dependency is trivial.

    Answer

    super key

  41. 41
    A functional dependency is trivial when its right-hand attribute set is a subset of its
    _____
    .
    Hint

    The dependency follows from reflexivity when the attributes on the right are already present on the left.

    Answer

    left-hand side

  42. 42
    In the instructor-with-department relation, department name determines building and budget, but department name is not a key; this dependency therefore
    _____
    BCNF.
    Hint

    A nontrivial dependency with a left side that is not a super key fails the BCNF test.

    Answer

    violates

  43. 43
    To decompose a relation using a violating dependency alpha determines beta, one component is formed from alpha union
    _____
    .
    Hint

    This component combines the determinant with the dependency's right-hand attributes.

    Answer

    beta

  44. 44
    In the other component of a BCNF decomposition, the attributes removed from R are the nontrivial part of beta, namely beta minus
    _____
    .
    Hint

    Remove from beta any attributes that already occur on the left-hand side.

    Answer

    alpha

  45. 45
    For the department name dependency, the first BCNF component contains department name, building, and
    _____
    .
    Hint

    It is the other attribute determined by department name.

    Answer

    budget

  46. 46
    In the instructor example, removing building and budget from the combined relation leaves the original
    _____
    relation.
    Hint

    This component contains ID, name, salary, and department name.

    Answer

    instructor

  47. 47
    In the decomposed instructor relation, ID determines name, salary, and department name; in the department relation, department name determines building and budget. These left sides are
    _____
    in their respective relations.
    Hint

    Each left side determines every attribute of its own component.

    Answer

    keys

  48. 48
    For a decomposition into R1 and R2 to cover the original relation, the union of their attributes must equal the attributes of
    _____
    .
    Hint

    This is the original schema being decomposed.

    Answer

    R

  49. 49
    A natural join decomposition is lossless when joining the component instances always reconstructs exactly the original relation, with no extra
    _____
    .
    Hint

    A lossy join may produce combinations that were not in the original instance.

    Answer

    tuples

  50. 50
    In the lossless-join condition described, the attributes shared by R1 and R2 must form a key in at least one of the
    _____
    .
    Hint

    The key condition applies to one of the two decomposed components.

    Answer

    relations

  51. 51
    In the instructor and department decomposition, the intersection is department name, which is a key of the
    _____
    relation.
    Hint

    This component contains department name, building, and budget.

    Answer

    department

  52. 52
    Dependency preservation means that after decomposition, each functional dependency can be checked using the individual relations, without needing to perform a
    _____
    .
    Hint

    The costly operation combines the decomposed relations.

    Answer

    join

  53. 53
    Checking dependencies by joining decomposed relations can be expensive because a join may require solving a
    _____
    problem.
    Hint

    The content names the product operation associated with the cost of joining.

    Answer

    Cartesian

  54. 54
    For the relation with attributes city, street, and zip code, the dependency CS determines Z makes CS a
    _____
    .
    Hint

    CS determines the remaining attribute as well as its own attributes.

    Answer

    key

  55. 55
    In the city, street, and zip code example, Z determines C violates BCNF because Z is not a
    _____
    .
    Hint

    The dependency is nontrivial, so its left side must meet the BCNF key condition.

    Answer

    key

  56. 56
    Decomposing the city, street, and zip code relation on Z determines C produces the components
    _____
    and SZ.
    Hint

    One component contains the determinant Z and the determined attribute C.

    Answer

    ZC

  57. 57
    For the ZC and SZ decomposition, the shared attribute is Z, and Z determines ZC, so the intersection is a key of component
    _____
    .
    Hint

    The component contains the attributes determined by Z.

    Answer

    ZC

  58. 58
    After decomposing into ZC and SZ, the dependency CS determines Z cannot be checked in either component alone; checking it requires a
    _____
    .
    Hint

    The dependency involves attributes that are spread across both components.

    Answer

    join

  59. 59
    The ZC and SZ decomposition is lossless but does not preserve every dependency; therefore BCNF does not guarantee dependency
    _____
    .
    Hint

    This property means that constraints can be checked without reconstructing the original relation.

    Answer

    preservation

  60. 60
    Third Normal Form keeps the BCNF conditions for trivial dependencies and dependencies whose left side is a
    _____
    .
    Hint

    This is the same determinant condition used in BCNF.

    Answer

    super key

  61. 61
    The additional 3NF condition applies to each attribute in the nontrivial right-hand portion, beta minus
    _____
    .
    Hint

    Exclude attributes that already appear on the dependency's left-hand side.

    Answer

    alpha

  62. 62
    Under the additional 3NF condition, every attribute in beta minus alpha must be part of at least one
    _____
    for R.
    Hint

    This is a minimal set of attributes that uniquely identifies tuples.

    Answer

    candidate key

  63. 63
    The attributes in beta minus alpha do not have to belong to the same candidate key; each may occur in a
    _____
    candidate key.
    Hint

    The condition is satisfied attribute by attribute, not necessarily by one shared key.

    Answer

    different

  64. 64
    Every relation in BCNF also satisfies 3NF, but a relation in 3NF is not necessarily in
    _____
    .
    Hint

    This is the stronger normal form.

    Answer

    BCNF

  65. 65
    The extra 3NF condition is a minimal relaxation of BCNF intended to help ensure dependency
    _____
    .
    Hint

    It helps retain the ability to check constraints after decomposition.

    Answer

    preservation

  66. 66
    A central normalization goal is to decompose a poorly designed schema into components that are in a good normal
    _____
    .
    Hint

    The standard design phrase is 'normal form.'

    Answer

    form

  67. 67
    A good decomposition should be lossless and, preferably, dependency
    _____
    .
    Hint

    This allows constraints to be checked without joining components.

    Answer

    preserving

  68. 68
    If a decomposition is lossy, one potential problem is that it may be impossible to
    _____
    the original relation correctly.
    Hint

    Lossless joining is intended to make this operation possible.

    Answer

    reconstruct

  69. 69
    Decomposition can make some queries more expensive because retrieving related information may require a
    _____
    .
    Hint

    This operation combines tuples from separate relations.

    Answer

    join

  70. 70
    Designers balance normal forms, lossless joining, dependency preservation, and query costs because these goals can be
    _____
    .
    Hint

    Improving one goal can sometimes make another harder to achieve.

    Answer

    contradictory

  71. 71
    The instructor information example stores each instructor's children and phone numbers together, so multiple independent facts create
    _____
    .
    Hint

    The same instructor information is repeated across combinations of children and phones.

    Answer

    redundancy

  72. 72
    The instructor information relation can be in BCNF despite its redundancy because it has no nontrivial functional
    _____
    .
    Hint

    BCNF is tested using constraints of this kind.

    Answer

    dependencies

  73. 73
    In the instructor information example, adding a phone number may require multiple tuples when the instructor has multiple children; this is an insertion
    _____
    .
    Hint

    It is a problem caused by needing extra or awkward data changes to record a fact.

    Answer

    anomaly

  74. 74
    Separating children and phone numbers into different relations reduces the tuple combinations and helps eliminate the described
    _____
    .
    Hint

    These are the insertion and update problems caused by redundancy.

    Answer

    anomalies

  75. 75
    Because the instructor information relation can already be in BCNF and 3NF, those forms alone do not solve this kind of independent multivalued-fact problem; a higher form such as
    _____
    may be needed.
    Hint

    It is the higher normal form named in the content.

    Answer

    fourth normal form

1 of 75
Question 1 of 75

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent