Programming Methods & Algorithms scripts - Top 4 Download

Programming Methods & Algorithms script downloads

Squirrel

Squirrel is known to run on Windows, Linux, MacOS X, PSP, GameCube, Wii, Nintendo DS and XBOX.It's inspired by languages like Python,Javascript and expecially Lua. Key features "Squirrel": · Dynamic typing · Delegation · Classes & inheritance · Higher order functions · Generators · Cooperative threads(coroutines) · Tail recursion · ...
Unknown

Multiple Variable Traveling Salesmen Problem Genetic Algorithm

It finds a (near) optimal solution to a variation of the M-TSP (that has a variable number of salesmen) by setting up a GA to search for the shortest route (least distance needed for the salesmen to travel to each city exactly once and return to their starting locations). Each salesman ...
Matlab

Fixed Start Open Multiple Traveling Salesmen Problem Genetic Algorithm

Finds a (near) optimal solution to a variation of the "open" M-TSP by setting up a GA to search for the shortest route (least distance needed for each salesman to travel from the start location to unique individual cities without returning to the starting location).Each salesman starts at the first point, ...
Matlab

Fixed Endpoints Open Multiple Traveling Salesmen Problem Genetic Algorithm

The script finds a (near) optimal solution to a variation of the "open" M-TSP by setting up a GA to search for the shortest route (least distance needed for each salesman to travel from the start location to unique individual cities and finally to the end location).Each salesman starts at the ...
Matlab

Fixed Start End Point Multiple Traveling Salesmen Problem Genetic Algorithm

Finds a (near) optimal solution to a variation of the M-TSP by setting up a GA to search for the shortest route (least distance needed for each salesman to travel from the start location to individual cities and back to the original starting place).Each salesman starts at the first point, and ...
Matlab

Traveling Salesman Problem Nearest Neighbor

This method produces different results depending on what city is choosen as the starting point.This function determines the Nearest Neighbor routes for multiple starting points and returns the best of those routes. Requirements: · MATLAB 7.6 or higher ...
Matlab

Fixed Start Open Traveling Salesman Problem Genetic Algorithm

The algorithm computes the optimal route from a fixed predetermined starting point to all other cities without returning to the starting point. Requirements: · MATLAB 7.6 or higher ...
Matlab

Open Traveling Salesman Problem Genetic Algorithm

The difference to the classic TSP is that the salesman doesn't travel in loop across the circuit. Requirements: · MATLAB 7.6 or higher ...
Matlab

Shared variable

Shared objects work like normal data types but can create a alias variable or can be used as pass-by-reference arguments.The alias variable is called a shared variable. Requirements: · MATLAB 7.6 or higher ...
Matlab

Seed7

It contains concepts from other programming languages, but it's not considered as a direct descendant from any other language. In Seed7, new statements and operators can be declared easily. Functions with type results and type parameters are more elegant than a template or generics concept.Object orientation is used when it brings ...

The Squirrel programming language

It was designed to be a powerful scripting language for small applications like games, due to its small size, reduced memory bandwidth and little real-time requirements.Squirrlel has been tested with the following compilers:MS Visual C++ 6.0,7.0,7.1 and 8.0 (32 and 64bits)MinGW gcc 3.2 (mingw special 20020817-1)Cygnus gcc 3.2Linux gcc 3.2.3Linux gcc ...

Clean implementation for Ordered Dictionary

This script allows you to record the order in which items are added. This implementation uses much less code than the others by extending not well-known class DictMixin. ...
Python

Automated swigging for creating C shared modules

This script contains a simple python function to automate using the swig process for creating C modules for use inside Python. ...
Python

Readable switch construction

Python's lack of a 'switch' statement has garnered much discussion and even a PEP. The most popular substitute uses dictionaries to map cases to functions, which requires lots of defs or lambdas. While the approach shown in this script may be O(n) for cases, it aims to duplicate C's original 'switch' functionality ...
Python

Ordered Dictionary

Often it is useful to use a dictionary to store information where the order of that information matters. In Python, one must usually keep a list of keys and pass the list along with the dictionary to any functions that need to maintain this order. This implementation stores the list of ...
Python

PyCrash

PyCrash is a Run-Time Exception Dumper which handles uncaught exceptions during the execution of Python programs and collects information about the program context. PyCrash can be very useful in report bug information, because the programmer can easily analyse the program execution context of the crashed application. PyCrash provides you following informations: ...
Python

Named Tuples

This script allows you a fast, lightweight attribute-style access to tuples. It contains a function that returns a new subclass of tuple with named fields. The principal features are: - Easy to type/read/modify function signature: NamedTuple('Person', 'name age sex height nationality')  - C-speed attribute lookup using property and itemgetter. - No ...
Python

Python symbols

Python symbols is a toy module that shows a way to define symbols inside functions, using a decorator. ...
Python

Load data in browser without using temp files

This script displays the html files in the default web browser without creating a temp file. It instantiates a trivial http server and calls webbrowser.open with a URL to retrieve html from that server. ...
Python

Flexible enumerate

Flexible enumerate() script adds an additional start argument to the built-in enumerate function. ...
Python