Thread: functional dependencies

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    35

    functional dependencies

    Is anyone familiar with a C++ library that is designed for decomposing database functional dependencies??? Any help is appreciated.

    Thanks in advance

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Someone can go ahead and correct me if I'm wrong but there is not any such library in the standard C++ library. There may be some proprietary library out there but it would also be dependant on the database (obviously) therefore I doubt there is a library out there that does exactly what you want. However, necessity is the mother of invention right?

  3. #3
    Just for my knowledge can someone explain...

    decomposing database functional dependencies
    ??? what do you mean by functional dependencies??
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

  4. #4
    Registered User
    Join Date
    Sep 2002
    Posts
    35

    well

    Functional dependencies deal with relations among attributes in a database. Kinda like what attributes are dependent upon other attributes - thus the term functional dependency.

    Peace

    Say for instance

    a -> b
    bc -> r

    etc.

    -> denotes the word "determines" ("a determines b") is an example

  5. #5
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Is anyone familiar with a C++ library that is designed for decomposing database functional dependencies???
    For which database, and free or proprietary?
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  6. #6
    Registered User
    Join Date
    Sep 2002
    Posts
    35

    not in particular

    I am speaking from a theoretical point of view. No particular database explicitly. FD's are looked at strictly from the design aspect. i am working on some code that will help during the design of the database.

    Am I shooting myself in the toe? The more and more I think about it, the more I think that the FD library doesn't exist.

    Peace

  7. #7
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Well, they may, but not to my knowledge . But I'd certainly write you one!
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  8. #8
    Registered User
    Join Date
    Sep 2002
    Posts
    35

    developing

    I am certainly interested in developing this code. If successful, then I would certain add it to my personal C++ class library. I'm not that proficient yet, but I do plan on spending lots of time with this...

    Thanks for everyone's input. As a matter of fact, I found some pseudocode for the algorithm. However, implementation is a my shortcoming. At this point, I am unaware of many C++ functions and methods calls....

    Peace

  9. #9
    I know this post is old, but here's a link to an entire college course on Database systems and FD's.

    http://www.cs.uh.edu/~marek/cosc6340.html

    click on the lectures...
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

  10. #10
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    Do you want an algorithm that takes something like
    A depends on B
    E depends on F
    B depends on E
    and the deduces that A depends on F.

  11. #11
    Registered User
    Join Date
    Sep 2002
    Posts
    35

    on target

    Nick, you are right on target. I have managed to complete my first task which is to make new relations by minimizing the right-side attributes, and writing to output to a new file.

    For instance:

    AB -> FGH is decomposed into

    AB -> F
    AB -> G
    AB -> H

    Now, I am trying to find the redundancies within my new output file. But yes, Nick, you are precisely on target.

    OneStiff, I will check the link. Thanks.

    Any input, I will accept.

    Peace

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makefile dependencies
    By taurus in forum C Programming
    Replies: 1
    Last Post: 11-09-2008, 12:17 AM
  2. C app with all dependencies
    By bradleyd in forum C Programming
    Replies: 4
    Last Post: 05-19-2007, 11:47 PM
  3. Replies: 0
    Last Post: 09-24-2006, 06:26 AM
  4. C++ library dependencies on compilers
    By danglingelse in forum C++ Programming
    Replies: 1
    Last Post: 03-31-2006, 11:42 PM
  5. Functional programming languages... r they really functional?
    By code_mutant in forum C++ Programming
    Replies: 10
    Last Post: 02-25-2004, 05:29 AM