Search code examples
programming-languagesset

Using Set Theory with arrays in programming


I was wondering if there are functions in any programming languages that allow you to test set theory. For example a library or series of decent algorithms that can perform Combinatorics on large sets.

I don't need basic push/pop I would like to know for what programming languages do libraries exist for functions like UNION CONCAT INTERSECTIONS and Compliments, and comparison of sub sets for 100k+ element sets.

I know this sounds like a math question... maybe not but I am more looking for a Programming language that is designed to handle large sets quickly, because I know my algorithms will be slow.


Solution

  • The standard Python set type provides these operations. No guarantees that the speed will be what you need, since you haven't stated your performance requirements.