If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > relation cardinality/selectivity (was "A difficult question, need help")

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-09-05, 15:20
weiss_adler weiss_adler is offline
Registered User
 
Join Date: Jan 2005
Posts: 3
Exclamation relation cardinality/selectivity (was "A difficult question, need help")

Given is a relation R (A1,A2, A3) with three attributes!
c (A2) = 2 c: cardinality
s (A2) = 64 s: selectivity
An index (binary tree) is created for A2!
What is the depth of a binary tree T(A2) in best case?
What is the depth of a binary tree T(A2) in worst case?
Reply With Quote
  #2 (permalink)  
Old 01-09-05, 16:33
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Assuming you are using the standard definitions for cardinality and selectivity or a relation, the specified relation can't exist, so both answers are NULL.

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On