PDA

View Full Version : Daisy!


tenebra_uk
17-05-2002, 14:05
Finally online! :bounce: :bounce: Nice to see you aound, matey! :grngrin:

2potscreama
17-05-2002, 14:29
Where? Where?

tenebra_uk
17-05-2002, 14:34
Gone already :frownblu: and missed this thread :cry:

2potscreama
17-05-2002, 14:37
Well you're good arent you. Bah!:rollani:

suicidesquad
17-05-2002, 14:39
I think the reason she's been away is a mix between work and playing TVS (http://www.tvsonline.co.uk).......but then I'm probably wrong(like usual - Ed).

suicidesquad
17-05-2002, 14:42
I'm not really sure if that post had any relevance......
There's a lesson to be learnt here, never post on a forum when doing an assignment on Hash Tables....:confblue:

alexp
17-05-2002, 14:49
Hash Tables.

The Perl variety (in which case tell them they're just associative arrays with a silly name and watch the lecturer get cross,) or the Lambeth type?

suicidesquad
17-05-2002, 14:52
God knows which variety, I don't pay that much attention in lessons....:bigeye:

I could attempt to explain it if you like.....see if that helps.

suicidesquad
17-05-2002, 15:04
Definitions

Array

An array is defined as a finite ordered set of homogeneous elements.
Finite means that there is a specific amount of elements in the array. The number can be large or small but it must be at least one, it is also fixed. This means that an array is a static data structure. By ordered, I mean that there is a first, second, third etc. element of the array. Because it is static, once it has been defined by the user it can’t be changed unless the code is changed. It can also contain only one data type (String, Integer, real). Arrays can be single or multi-dimensional. A single dimension array will be printed like a one-column table. When you code the array you can say how many dimensions you want it to have.

Stack

A stack is a particular type of sequence that can only be accessed from one end; the top. A good real life example of this would be stacking plates.

There are only two operations that can be performed by a stack. Adding a new item is placing it on the top of the stack, this is also known as pushing. When you remove an item, the only item you can remove is the item that was most recently added, this is also known as popping. The stack is known as a LIFO structure – Last In First Out.

Items do not move up and down the stack as they are pushed or popped. Instead, the position of the top of the stack changes. A pointer called a stack pointer indicates the position of the top of the stack.

Queue

A queue is a First In First Out (FIFO) type of data structure. You can only add new elements from the end of the queue. The only way to delete or retrieve data from a queue is to take it from the front.

The sequence of the data items is determined simply by the order they were inserted, not by their value.

The three main things that a queue needs to work are a front pointer, a rear pointer and a limit.

As soon as an item is added to the queue, the rear pointer is incremented to 1. The two pointers will now be changed, so that they both point at the same item.

Hash table

You can take a primary key value and turn it into a location within a file, where it will be stored as a record. Some compilers use this technique to obtain a memory address at which to store variable names and relevant information. The hash table consists of the variable name and address or the array subscript.

The easiest way of finding a location from a given key is to use, which is called, “modular arithmetic”. By doing that, you divide the key by the number of possible locations for storage, and take the remainder as the address. If you have a table with 100 locations and the key has a value of 1537 then the table will be stored at location 37.

Warspite
17-05-2002, 15:08
NO.

That would be a bad thing.:coolred:

Warspite
17-05-2002, 15:09
Too late!!
You went and did it anyway:rollani:

suicidesquad
17-05-2002, 15:14
Is it just me, or does my Hash Table description not make any sense? :bigeye:

Understudy
17-05-2002, 15:33
Originally posted by suicidesquad
Is it just me, or does my Hash Table description not make any sense? :bigeye:
Dunno, I got as far as....

An array is defined as a finite ordered set of homogeneous.... zzzzzzzzzzzzzzzzzzzz

suicidesquad
17-05-2002, 15:35
Haha, you try writing the stuff, you won't even get that far without falling asleep!!:lolblue:

Understudy
17-05-2002, 15:38
Originally posted by suicidesquad
Haha, you try writing the stuff, you won't even get that far without falling asleep!!:lolblue:
I nearly got shocked awake by the 5 sylable words :eekblue:

Warspite
17-05-2002, 15:54
*help...read SS stuff..brain failing..pinkies not responding..need tea and cake soonest....please render all assistance...mayday..mayd *

tenebra_uk
17-05-2002, 15:59
Hehe, Daisy will be moved when she sees this thread :lolblue:

2potscreama
17-05-2002, 16:01
Ah, but moved to where?

tenebra_uk
17-05-2002, 16:05
:wierdblu: Clearly somewhere else :grntngue:

2potscreama
17-05-2002, 16:13
You know, I got accused of being Anglo-Italian once. I've never been able to work out why, or if its a good thing or a bad thing.

As an Italian, what do you reckon?

tenebra_uk
17-05-2002, 16:17
I get accused of being Anglo-Italian all the time, whatever country I'm in :lolblue: I guess I'm not the right person to ask :grngrin:

2potscreama
17-05-2002, 16:25
You're in a really unhelpful mood today arent ya?

tenebra_uk
17-05-2002, 16:34
Why? :eekblue: Honest, you don't seem to shout enough to be accused of being Italian :grngrin: Right, that's maybe why I'm accused of being British :confblue:

ginga
17-05-2002, 17:59
SS, just buy the Camel book (O'reilly Perl book) - and rephrase that instead of trying to write all this stuff yourself.

tenebra_uk
17-05-2002, 18:43
Welcome Ginga :grngrin:

DaisyDuke
17-05-2002, 19:01
Hey guy's :)

sorry bout earlier, was home for lunch, they allow me an hour on Friday's....(mean people).

nice to see you all again, :) but what is this new faces too :D

just about got that problem sorted....you know the one they call "real life"......so will have more time for you guy's now :D

Whitewolf
17-05-2002, 19:16
Yay!DaisyDuke is back :)
*Jumps up and down*

suicidesquad
17-05-2002, 19:27
Originally posted by ginga
SS, just buy the Camel book (O'reilly Perl book) - and rephrase that instead of trying to write all this stuff yourself.
Good plan. :)

Diablo
17-05-2002, 20:17
MY BELOVED HOUSY IS BACK!!!!!! :grngrin: :tup:

DaisyDuke
17-05-2002, 20:26
Hi darlin :)

did you miss me ? ;)

2potscreama
17-05-2002, 20:37
Did he miss you?

Trust me, you dont wanna know the kind of suggestions he's been chucking around about what to do while you were gone...

Diablo
17-05-2002, 20:43
YES ! Of course I missed you ! Now you are working again , right ? How is it ? :grngrin:

DaisyDuke
17-05-2002, 21:32
thankyou di :)

missed you too :D

yes am back to work, I *hate* it, am supposed to have some neat trendy accesories for my comp, but the techy guy's seem to be dragging their feet.

No internet access at work :(

but all the guy's are nice and chatty.....they seem to have missed me......:D

captcoyote
18-05-2002, 04:08
Wow Daisy you seem to have developed quite a following. Sorry for missing you on TVS and Tara's lately. I am finally trying to get serious about packing and getting ready to move. I have to say that I have not been impressed with the group in TVS, and without interaction the game is boring. It is the people that make the game.

Whitewolf
18-05-2002, 10:29
I miss you too,DaisyDuke.
*Jumps up and down*

DaisyDuke
18-05-2002, 17:47
Hey captcoyote :)

seem's I have a lot of friends here...thanks guy's and gals :)

Tis me that should be appologisinfg, have not been in Taras much, since back to work, but will get there soon enough :)

*hugs Whitewolf*

Missed you too mate, am back now though :)

Diablo
18-05-2002, 17:49
Well..You had a break for more than half a year ! :eek: Now you are able to work again....

Got a new Suzuki though ?:grngrin:

DaisyDuke
18-05-2002, 17:54
hey Di :)

was actually away from work for a year and 10 days, and only back due to special tools which help me type an stuff :)


New Suzuki? my little baby was bought the year before I hurt my hands, may have to change it though have difficulty driving (no power steering)
:(

hawke
18-05-2002, 18:15
Hey Daisy,

Look you can always borrow mine if you need something a bit easier to drive:)

:grngrin: :grntngue: you know where its kept lol

cya later

DaisyDuke
18-05-2002, 19:02
hey Hawke :)

yeah I know where yours is :) not quiet the same look as mine though :D

but do you think I would *trust* you with mine ;) well not for too long anyway's ;)

hawke
18-05-2002, 19:17
well we can see how long you will let me have the car if you want to:)

Whitewolf
18-05-2002, 19:40
*Hugs DaisyDuke*
I wish I had a car.......