completed complexity of unary functions
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@118 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
e1dec88be6
commit
45b559be28
@ -64,5 +64,11 @@ Notation
|
||||
|
||||
1.3 Projection
|
||||
|
||||
The projection operation creates a copy of the original relation
|
||||
using only a subset of its fields. Time for the copy is something
|
||||
like O(|n|*f) where f is the number of fields to copy.
|
||||
But that's not all. Since relations are set, duplicated items are not
|
||||
allowed. So after extracting the wanted elements, it has to check if
|
||||
the new tuple was already added to the new relation. And this brings
|
||||
the complexity to O((|n|*f)²).
|
||||
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
Loading…
x
Reference in New Issue
Block a user