State Design Pattern
The state pattern is a behavioral software design pattern, also known as the objects for states pattern. This pattern is used in computer programming to represent the state of an object. This is a clean way for an object to partially change its type at runtime
created by syam1224 on 2008-05-11 21:21:54
|
|
|
PHP Design Pattern Articles
List of articles explaining how Design patterns can be used in PHP Programming. PHP is a widely-used general-purpose scripting language that is especially suited for web development and can be embedded into HTML.
created by syam1224 on 2008-05-11 21:31:24
|
|
|
Post-order Tree Traversal Algorithm
To traverse a non-empty binary tree in postorder, perform the following operations recursively at each node, starting with the root node:
1. Traverse the left subtree.
2. Traverse the right subtree.
3. Visit the node.
created by syam1224 on 2008-05-11 05:10:40
|
|
|
Nikhil Ramya Wedding Album: Kerala
Online collection of Nikhil Ramya wedding. Nikhil was Kairali VJ and Ramy is the new anchor of Idea Star Singer 2008.
created by syam1224 on 2008-05-09 14:09:34
|
|
|
Command Design Pattern
The Command design pattern encapsulates the concept of the command into an object. The issuer holds a reference to the command object rather than to the recipient. The issuer sends the command to the command object by executing a specific method on it. The command object is then responsible for dispatching the command to a specific recipient to get the job done.
created by syam1224 on 2008-05-08 21:33:18
|
|
|
Observer Design Pattern
The observer pattern (sometimes known as publish/subscribe) is a design pattern used in computer programming to observe the state of an object in a program. It is related to the principle of implicit invocation.
created by syam1224 on 2008-05-08 20:47:48
|
|
|
Chain of Responsibility : Design Pattern
In Object Oriented Design, the chain-of-responsibility pattern is a design pattern consisting of a source of command objects and a series of processing objects. Each processing object contains a set of logic that describes the types of command objects that it can handle, and how to pass off those that it cannot to the next processing object in the chain. A mechanism also exists for adding new processing objects to the end of this chain.
created by syam1224 on 2008-05-07 21:10:15
|
|
|
Memento Design Pattern
The memento pattern is a software design pattern that provides the ability to restore an object to its previous state (undo via rollback).
The memento pattern is used by two objects: the originator and a caretaker. The originator is some object that has an internal state. The caretaker is going to do something to the originator, but wants to be able to undo the change. The caretaker first asks the originator for a memento object. Then it does whatever operation (or sequence of operations) it was going to do. To roll back to the state before the operations, it returns the memento object to the originator. The memento object itself is an opaque object (one which the caretaker can not, or should not, change). When using this pattern, care should be taken if the originator may change other objects or resources - the memento pattern operates on a single object.
created by syam1224 on 2008-05-07 20:42:39
|
|
|
Autonomous Transactions : Oracle
Autonomous transactions allow you to leave the context of the calling transaction, perform an independant transaction, and return to the calling transaction without affecting it\'s state. The autonomous transaction has no link to the calling transaction, so only commited data can be shared by both transactions.
created by tom on 2008-05-05 21:55:28
|
|
|
Josephus problem : Mathematics
There are n people standing in a circle waiting to be executed. After the first man is skipped, k − 2 people are skipped (skipping over k − 1 people set you over the k-th man) and the k-th man is executed. Then again, k − 1 people are skipped and the k-th man is executed. The elimination proceeds around the circle (which is becoming smaller and smaller as the executed people are removed), until only the last man remains, who is given freedom.
The task is to choose the place in the initial circle so that you survive (are the last one remaining), given n and k.
created by syam1224 on 2008-05-04 03:58:33
|
|
|