Monday, November 19, 2007

Data Structure

Those who have studied Data Structure in computer science will understand various Data Structures like Stack, Queue, etc.

All these are real life entities, which are given proper name and implementation logic in order to
bridge the gap between real requirements and the way computer handles them.

Given a specification for a standard data structure, Its not very difficult to implement one.

However, I was thinking of the following situation.

Suppose all the files, in a Govt office are converted into Electronic form, and all operations,
both Legal as well as illegal ( imean corruptions, bribes under the table) are computerized.

Files moves from one Officer to another and every officer will have a data structure to hold the files.

This is the data structure I am talking about :)
At the first instence, It might look like a Queue. But is it ?
Some time It becomes a Stack, when important people comes in for services.
At times, when some one doesn't have a good personal relationship with the officer. The file might remain in the same position for long time without any movement.

The position of files could be moved from one position to another
due to various factors, such a bribe, recommendation, change in government etc.

Lets be prepared for such a data type and be ready for teh future applications :)

Any suggessions for the list of methods/interfaces for such a data type ?