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

Getting SYSTEM environment variable under Windows

This script allows you to get SYSTEM environment value, as if running under Service or SYSTEM account.As you can see in Windows Control Panel 'System' applet there are two groups of environment variables: USER and SYSTEM. This script presents a function for retrieve SYSTEM variable value.  ...
Python

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 ...

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 ...

Constraint based Sudoku Solver

This code uses the constraint package to solve sudoku puzzles. It's designed to be flexible and tested with 9x9 puzzles with 1-9 as possible values. In theory it should be able to solve puzzles of different sizes comprised of letters or symbols instead of numbers. Requirements: · constraint package ...
Python

A general solution of Eight Queens

This script is a general method to figuren out all solutions of eight queens. Certainly, it can also solve any number of queens. Each solution is a list, and each value of the list represents the column number, at the same time the index of this value represents it's row number. For instance, ...
Python

Loose Coupling

The "broadcaster" and "broker" modules enable loose coupling between objects in a running application. ...
Python

Maintenance free Signals implementation

This is a signals implementation for python. It is similar to the pydispatch module. This implementation enables you to create Signals as members of classes, as globals, or as locals. You may connect any number of functions or class methods to any signal. Connections manage themselves with the weakref module. Signals ...
Python

Matrix vector multiplication

Using 'reduce' and 'map', this code shows how a matrix vector multiplication can be reduced to a single loop. ...
Python

Anagram Fetcher

This script provides you code for fetching Anagrams out of any given file that contains words seperated by new lines. ...
Python

Basic Linear Algebra Matrix

This script defines the Matrix class, an implementation of a linear algebra matrix. Arithmetic operations, trace, determinant, and minors are defined for it. This is a lightweight alternative to a numerical Python package for people who need to do basic linear algebra. Vectors are implemented as 1xN and Nx1 matricies. There is ...
Python

Scramble Word

Scramble word script re-arrange characters of word by using simple string manipulation and Random module. ...
Python

Turing Machine Simulator

Turing Machine Simulator allows an arbitrary machine to be loaded. Words (represented as strings) can be ran against the simulator producing a response: Accept or Crash. ...
Python

Python Octree Implementation

This script is a simple implementation of an octree data structure in python. Its use is primarily for fast collision or view frustrum culling in interactive 3d environments, but its possible uses are quite open-ended. It was originally written for use with the pyOgre 3d engine binding. The code makes use of ...
Python

Caching decorator with timeout invalidation

This script is a caching decorator that  collects garbage in a separate thread (for performance).It allows each cached function to (optionally) set a custom maximum age for entries, and allows individual cache entries to be selectiries, andlidated.This kind of caching decorator is often useful in web development, when your pages are ...
Python

Lazy attributes

Lazy attributes script shows how to create attributes with 'computed at first use' values. ...
Python

z crypt

This module show a way to simple data encryption. Characters are mapped to a key via replacement. Though simple, this is a good method for encrypting data if the data is compressed before or after the encryption process. The functions provided by this recipe are meant to be used in a ...
Python

Convex hull and diameter of 2d point sets

This script returns the convex hull (separated into upper and lower chains of vertices) and the diameter (farthest pair of points), given input consisting of a list of 2d points represented as pairs (x,y). The convex hull algorithm is Graham's scan, using a coordinate-based sorted order rather than the more commonly ...
Python

Stateful Objects use Mix ins to define behaviour

If you want to implement stateful objects, which have a different set of behaviours according to what state they are in, this requirement can be achieved with the use of mix-ins. A mix-in is a class which is dynamically inherited by an object. The methods of the mix-in class are thus ...
Python

Random Password Generation

Random Password Generation script is a code snippet to generate an 8 character alphanumeric password. ...
Python