Anonymous user
User:Realazthat/Notes/Algorithms/Set-intersection: Difference between revisions
User:Realazthat/Notes/Algorithms/Set-intersection (view source)
Revision as of 17:36, 6 January 2011
, 13 years agono edit summary
No edit summary |
No edit summary |
||
Line 13:
return false
</pre>
<pre>
#
DNE(A,B):
if |A| > |B|
Line 29 ⟶ 28:
return false
</pre>
== Set Intersection Not Empty ==
<pre>
#Set Intersection Not Empty
INE(A,B):
C = |A| < |B| ? A : B
D = |A| < |B| ? B : A
for ( c in B )
if ( c in D )
return true
return false
</pre>
|