Generic vs. Specific Algorithms

Category: Python - Education

This script presents two approaches to generate all combination of elements from a number of sets. It compares "classic" statically coded algorithms to a pythonic on-the-fly generation of specific algorithm code. Date: 22 January, 2012


Generic Algorithms - Specific Algorithms - Combination Generator - Generic - Specific - Algorithms

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This script is yet another combination generator, with an extra twist: the generated combinations can be yielded in blocks of a given size.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script takes multiple sequences and creates a list in which each item is constructed from items from each input sequence, and all possible combinations are created.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Earn 20% commission on all sales you make using the ScriptSocket Generic Gifts Store script.

developer Developer: Mark Berman
license License: Freeware
operating systems Operating System: All


This is a simple generic libary for interactive art and design.

developer Developer: files.rubyforge.vm.bytemark.co.uk
license License: Freeware
operating systems Operating System: All


By storing an object's data in a dictionary, you can easily create a Filter class which tests a given object against a set of nested inclusion rules.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Generic console menu selection.

developer Developer: dreamincode.net
license License: Freeware
operating systems Operating System: All


Generic Actions - Generic Actions for Ruby.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


This code implements the policy design pattern in Python by using metaclasses and multiple inheritance.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script memoizes, but clears cache when last function call returns.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All