Algorithmic Sets
(Unterschied zwischen Versionen)
				
																
				
				
								
				Mkurz  (Diskussion | Beiträge)  | 
		Mkurz  (Diskussion | Beiträge)   (→Definition Algorithmic Set)  | 
		||
| Zeile 1: | Zeile 1: | ||
== Definition Algorithmic Set ==  | == Definition Algorithmic Set ==  | ||
| − | * We want to define an algorithmic set via a Predicate deciding if an element is part of the set.  | + | * We want to define an algorithmic set via a Predicate deciding if an element is part of the set or not.  | 
* In java we could use the functional interface Predicate<T>  | * In java we could use the functional interface Predicate<T>  | ||
<pre>  | <pre>  | ||
Version vom 8. November 2014, 09:46 Uhr
Definition Algorithmic Set
- We want to define an algorithmic set via a Predicate deciding if an element is part of the set or not.
 - In java we could use the functional interface Predicate<T>
 
public interface Predicate<T>{
       // If test returns true, we consider the element be part of the algorithmic set.
       boolean test(T element);
}