|
|
|
|
|
|
|
|
|
|
eltinator01 Guest
|
Posted: Mon May 17, 2004 12:24 pm Post subject: Re: Rebootay. |
|
|
RedRum wrote: |
Programming assignment? Yes and No |
yup exactly! I actually have to draw a heap after I call the function pop(). Im a bit confused with the question mostly, want me to write up the question, you might make more sense of it than me
|
|
Back to top |
|
|
|
|
|
|
|
|
|
Akakage
Joined: 23 Apr 2003 Posts: 9069 Location: Neverland
|
Posted: Mon May 17, 2004 12:30 pm Post subject: |
|
|
bmwracer wrote: | Interesting avatar, Aho. |
It's like butt inspection to me.. So FUNNY!! hahahahaha...
|
|
Back to top |
|
|
|
|
|
|
|
|
|
eltinator01 Guest
|
Posted: Mon May 17, 2004 12:33 pm Post subject: |
|
|
Akakage wrote: |
It's like butt inspection to me.. So FUNNY!! hahahahaha... |
LOL, looks like it's mutual among everyone too
|
|
Back to top |
|
|
|
|
|
|
|
|
|
Akakage
Joined: 23 Apr 2003 Posts: 9069 Location: Neverland
|
Posted: Mon May 17, 2004 12:34 pm Post subject: |
|
|
ahochaude wrote: | That sounds like something Loveless would say. He's the only other person I heard saying that here:
http://www.jdorama.com/viewtopic_1750_1215.htm
lovely wrote: | u don't have to quote me i posted right on top of you... and yes if it is better to use the pm for those kind of remarks rather than filling a thread with it...
the PM is/was working fine.. it says "failed sending" but it still sends...
don't call me USAKO BTW.... ja
/)_/)
( ';' )
((")(") USAKO |
|
I remember that bitch slapping.... Is he Usako or Lovely now?
|
|
Back to top |
|
|
|
|
|
|
|
|
|
RedRum
Joined: 23 Jul 2003 Posts: 343 Location: Ontario Country: |
Posted: Mon May 17, 2004 12:35 pm Post subject: Re: Rebootay. |
|
|
eltinator01 wrote: |
yup exactly! I actually have to draw a heap after I call the function pop(). Im a bit confused with the question mostly, want me to write up the question, you might make more sense of it than me |
Sure I'll try. But for pop() you just remove the root and replace it with the last element then bubble down right?
|
|
Back to top |
|
|
|
|
|
|
|
|
|
eltinator01 Guest
|
Posted: Mon May 17, 2004 12:43 pm Post subject: Re: Rebootay. |
|
|
RedRum wrote: |
Sure I'll try. But for pop() you just remove the root and replace it with the last element then bubble down right? |
Yea I think so. Cause like I have an array and I have to represent it with a heap. Well here is the prompt...
--------------------------------------
Trace the heapsort for a vector with elements {7,12,5,2,15,25,1}. Draw the initial heap, and show the status of the heap after every pop() operation. Also, show the contents of the vector at each step.
------------------------------------
the thing is, it doesn't specify a min or max heap so I'm a bit lost
|
|
Back to top |
|
|
|
|
|
|
|
|
|
RedRum
Joined: 23 Jul 2003 Posts: 343 Location: Ontario Country: |
Posted: Mon May 17, 2004 1:40 pm Post subject: Re: Rebootay. |
|
|
eltinator01 wrote: |
Yea I think so. Cause like I have an array and I have to represent it with a heap. Well here is the prompt...
--------------------------------------
Trace the heapsort for a vector with elements {7,12,5,2,15,25,1}. Draw the initial heap, and show the status of the heap after every pop() operation. Also, show the contents of the vector at each step.
------------------------------------
the thing is, it doesn't specify a min or max heap so I'm a bit lost |
Assume it's min heap. Max heap would be similar. First insert the elements into the heap.
Code: |
Initial heap:
1
5 2
12 15 25 7
after 1st pop()
2
5 7
12 15 25
[1]
after 2nd pop()
5
12 7
25 15
[1,2]
after 3rd pop()
7
12 15
25
[1,2,5]
|
I guess something like this.
|
|
Back to top |
|
|
|
|
|
|
|
|
|
IkematsuSosuke
Joined: 14 Feb 2004 Posts: 1105 Location: Stockton/Frisco Country: |
|
Back to top |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ahochaude
Joined: 01 Oct 2003 Posts: 10291 Location: Matsuhama-cho, Ashiya-shi, Hyogo-ken, Japan Country: |
Posted: Mon May 17, 2004 2:29 pm Post subject: |
|
|
bmwracer wrote: | Interesting avatar, Aho. |
Thanks! It's a "Saboola". Well, at least that's what I used to call that 'technique' in high school!
eltinator wrote: | omg AHAHAHAHAHAHAHAHAHAHAHHAHAHAA
nice avatar, you made it yourself aho? |
Nope, didn't make it myself. C'mon elt, you should know by now that I'm a total idiot when it comes to computers! _________________
Last edited by ahochaude on Mon May 17, 2004 2:35 pm; edited 1 time in total
|
|
Back to top |
|
|
|
|
|
|
|
|
|
MixxDreamer
Joined: 06 May 2003 Posts: 3779 Location: so. cali, USA Country: |
Posted: Mon May 17, 2004 2:34 pm Post subject: |
|
|
ahochaude wrote: | That sounds like something Loveless would say | eeeu gomen! lol no im not trying to bite off of him honestly! it was just a random question
anyway ur avatar is funny, im suprised its not rina this time _________________
Last edited by MixxDreamer on Mon May 17, 2004 2:37 pm; edited 1 time in total
|
|
Back to top |
|
|
|
|
|
|
|
|
|
ahochaude
Joined: 01 Oct 2003 Posts: 10291 Location: Matsuhama-cho, Ashiya-shi, Hyogo-ken, Japan Country: |
Posted: Mon May 17, 2004 2:37 pm Post subject: |
|
|
MixxDreamer wrote: | eeeu gomen! lol no im not trying to bite off of him honestly! |
I know. It just reminded me of that 'cause no one I've seen here ever criticized such posting as he did.
MixxDreamer wrote: | anyway ur avatar is funny, im suprised its not rina this time | It'll be Rina soon. She's taking a breather for now. _________________
|
|
Back to top |
|
|
|
|
|
|
|
|
|
eltinator01 Guest
|
Posted: Mon May 17, 2004 2:39 pm Post subject: |
|
|
ahochaude wrote: |
Nope, didn't make it myself. C'mon elt, you should know by now that I'm a total idiot when it comes to computers! |
AHAHAH well you never know, might get hit with a moment of enlightment for such things
So Rina is on vacation right now? Man I just keep making Aya go to work everyday
|
|
Back to top |
|
|
|
|
|
|
|
|
|
ahochaude
Joined: 01 Oct 2003 Posts: 10291 Location: Matsuhama-cho, Ashiya-shi, Hyogo-ken, Japan Country: |
Posted: Mon May 17, 2004 2:47 pm Post subject: |
|
|
eltinator01 wrote: |
AHAHAH well you never know, might get hit with a moment of enlightment for such things
So Rina is on vacation right now? Man I just keep making Aya go to work everyday |
Yeah, Rina is on vacation for now.
And with my kind of brain, heh, there is never a moment of "enlightment".
Perhaps I should E-mail/PM Genma again regarding your account status just in case he deleted it unknowingly..... _________________
|
|
Back to top |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
eltinator01 Guest
|
Posted: Mon May 17, 2004 2:59 pm Post subject: |
|
|
ahochaude wrote: |
Yeah, Rina is on vacation for now.
And with my kind of brain, heh, there is never a moment of "enlightment".
Perhaps I should E-mail/PM Genma again regarding your account status just in case he deleted it unknowingly..... |
hahaha ok, his inbox must be litered with spam mail
Anyways I'm gonna hit the sack with Aya right now. Night buddy!
|
|
Back to top |
|
|
|
|
|
|
|
|
|
ahochaude
Joined: 01 Oct 2003 Posts: 10291 Location: Matsuhama-cho, Ashiya-shi, Hyogo-ken, Japan Country: |
Posted: Mon May 17, 2004 3:06 pm Post subject: |
|
|
eltinator01 wrote: |
hahaha ok, his inbox must be litered with spam mail
Anyways I'm gonna hit the sack with Aya right now. Night buddy! |
Ok. G'Night dude. I'll see you tomorrow. Watch for my E-mail, ok?! _________________
|
|
Back to top |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
eltinator
Joined: 15 Nov 2003 Posts: 6787 Location: Fremont, CA Country: |
|
Back to top |
|
|
|
|
|
|
|
|
|
ahochaude
Joined: 01 Oct 2003 Posts: 10291 Location: Matsuhama-cho, Ashiya-shi, Hyogo-ken, Japan Country: |
Posted: Tue May 18, 2004 3:27 am Post subject: |
|
|
eltinator wrote: | wow that was fast! thanks aho! |
Glad to see you on board again!
Now respond to that damn PM I gave you!
Mizzymurda, you've been reactivated as well. You can log in using your password. Don't change your E-mail again though! If it's not the one you want, let me know so I can have the admin change it for you. _________________
|
|
Back to top |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|