Loading...

Loading...

Danny said:
As promised, today episode of "Who wants to learn a data structure?"
Anyway, I stated last week that perhaps this week I would talk about a Queue. Queue are a type of data structure that are first in and first out. This defines for us then two methods: enqueue and dequeue. Enqueue puts something into the queue and dequeue takes it out.
So using our simple example from last week, if I had A, B, and C. I put A into the queue(enqueue), then B, and finally C then when I remove them(dequeue), these would come out in the order of A, B, and C.
Another way of thinking of this might be to imagine a group of airplanes at an airport, they come in for a landing, but are forced to take off in the same order they had landed. So, lets say, it comes in lands, and then takes off on the other side again.
A use for this data structure is when one wants to have a temporary data storage, where order of arrival is important. Another interesting method that could be in a Queue is peek, which lets us look at the element dequeue would remove, but without removing it.
I hope this brings a little extra knowledge about a queue, and why it is used. Another example of a queue, a waiting line in a restaurant that has not cutting in line allowed. ;)
Anyway, I stated last week that perhaps this week I would talk about a Queue. Queue are a type of data structure that are first in and first out. This defines for us then two methods: enqueue and dequeue. Enqueue puts something into the queue and dequeue takes it out.
So using our simple example from last week, if I had A, B, and C. I put A into the queue(enqueue), then B, and finally C then when I remove them(dequeue), these would come out in the order of A, B, and C.
Another way of thinking of this might be to imagine a group of airplanes at an airport, they come in for a landing, but are forced to take off in the same order they had landed. So, lets say, it comes in lands, and then takes off on the other side again.
A use for this data structure is when one wants to have a temporary data storage, where order of arrival is important. Another interesting method that could be in a Queue is peek, which lets us look at the element dequeue would remove, but without removing it.
I hope this brings a little extra knowledge about a queue, and why it is used. Another example of a queue, a waiting line in a restaurant that has not cutting in line allowed. ;)
Vaughn Tolle said:
This opinion piece entitled "Alberto Gonzalez' Safety Net" addresses why AG AG may not be asked to resign. I'd forgotten about the conditions set on Mr. Richardson upon his confirmation.
http://www.latimes.com/news/opinion/la-oe-holtzman...,0,3365495.story?coll=la-opinion-rightrail
http://www.latimes.com/news/opinion/la-oe-holtzman...,0,3365495.story?coll=la-opinion-rightrail
lindainks55 said:
The link didn't work, VT. What am I doing wrong? I know it's something I'm doing -- always is, but I did try copy and paste after clicking didn't get me there.
Vaughn Tolle said:
Second try:
http://www.latimes.com/news/opinion/la-oe-holtzman...,0,3365495.story?coll=la-opinion-rightrail
http://www.latimes.com/news/opinion/la-oe-holtzman...,0,3365495.story?coll=la-opinion-rightrail
Vaughn Tolle said:
Linda, check your email; full link (working) there. From looking at the two attempts to copy/paste above, only a part of the link is "active", thus won't work for you or anyone else.
Vaughn Tolle said:
Mr. al-Malaki seems determined to do whatever needed to continue his power. Within the article, it is said that the actions of "the office of the Commander in Chief" are working against the efforts of the U.S. forces in Iraq.
http://www.cnn.com/2007/WORLD/meast/05/01/iraq.off...
http://www.cnn.com/2007/WORLD/meast/05/01/iraq.off...
lindainks55 said:
So we're stuck with him along with his cohorts in crime. I do believe he will be more careful from now on since many are watching much more closely! Maybe I'm giving him more credit for having brains than he deserves.
Why can't Congress choose just a very few of the many areas that deserve investigation, appoint special prosecutors for each and get back to their jobs? I would think the few they select could ALL show the public this administration is guilty of abuse of power, have committed impeachable offenses... I don't want impeachment or more time wasted, but I do think Americans deserve to know some of the truth. Certainly a few special prosecutors delving into a few of the very worst crimes of this administration couldn't cost more than leaving everything hidden and unchanged -- inviting repeat offenders. The Republicans are going to scream unfair, unprecedented, wasteful, etc. no matter what happens so may as well do things right while they complain. Thinking people will appreciate getting the guilty out in the open. Congress could spend all day just keeping them accountable on the war front. Most of the ugliness of this bunch of crooks will never be known. I would think bushco would earn their appropriate place in history with just a few investigations.
Why can't Congress choose just a very few of the many areas that deserve investigation, appoint special prosecutors for each and get back to their jobs? I would think the few they select could ALL show the public this administration is guilty of abuse of power, have committed impeachable offenses... I don't want impeachment or more time wasted, but I do think Americans deserve to know some of the truth. Certainly a few special prosecutors delving into a few of the very worst crimes of this administration couldn't cost more than leaving everything hidden and unchanged -- inviting repeat offenders. The Republicans are going to scream unfair, unprecedented, wasteful, etc. no matter what happens so may as well do things right while they complain. Thinking people will appreciate getting the guilty out in the open. Congress could spend all day just keeping them accountable on the war front. Most of the ugliness of this bunch of crooks will never be known. I would think bushco would earn their appropriate place in history with just a few investigations.
WSClark said:
On this, the fourth anniversary of the aircraft carrier Mission Accomplished speech, Bush will address the nation at 5:00 PM CDST to announce that he is vetoing the emergency War on Iraq spending bill that was passed by Congress.
Rumor has it that Bush will travel to the site of the speech via Segway wearing a nylon jogging suit. He will deliver the speech under a large banner stating "WHOOPS! MY BAD!" The banner, of course, will have nothing to do with the conduct of the war, since it was a request by the two guys that delivered the Segway. Bush is expect to say that everything would be just peachy keen in Iraq if it wasn't for those democratically elected Democrats and all those car bombs.
There is no word as to which Democrat will be able to stop laughing long enough to deliver a response to Bush.
Rumor has it that Bush will travel to the site of the speech via Segway wearing a nylon jogging suit. He will deliver the speech under a large banner stating "WHOOPS! MY BAD!" The banner, of course, will have nothing to do with the conduct of the war, since it was a request by the two guys that delivered the Segway. Bush is expect to say that everything would be just peachy keen in Iraq if it wasn't for those democratically elected Democrats and all those car bombs.
There is no word as to which Democrat will be able to stop laughing long enough to deliver a response to Bush.
Gster said:
WS- He's already had one bad experience with a Segway.
Is there such a thing as a tricycle with training wheels for this renowned crack fighter pilot type?
Is there such a thing as a tricycle with training wheels for this renowned crack fighter pilot type?
Gster said:
Come to think of it, on this date it would be appropriate for his call sign to be "mayday".
It's very descriptive!
It's very descriptive!
Danny said:
VT,
I've not quite decided yet. I was thinking a binary tree, could look at a splay tree, or an AVL tree I suppose but the latter two get a bit more complicated. I might add something a little extra also next week. Any particular requests?
However, I didn't think of Heaps those would be good also.
I've not quite decided yet. I was thinking a binary tree, could look at a splay tree, or an AVL tree I suppose but the latter two get a bit more complicated. I might add something a little extra also next week. Any particular requests?
However, I didn't think of Heaps those would be good also.
Danny said:
VT,
I've not quite decided yet. I was thinking a binary tree, could look at a splay tree, or an AVL tree I suppose but the latter two get a bit more complicated. I might add something a little extra also next week. Any particular requests?
However, I didn't think of Heaps those would be good also. Strangely enough, I remember all of these from my CIS300 class which I had taken in 2004. I remember exactly how each of these was explained.
I've not quite decided yet. I was thinking a binary tree, could look at a splay tree, or an AVL tree I suppose but the latter two get a bit more complicated. I might add something a little extra also next week. Any particular requests?
However, I didn't think of Heaps those would be good also. Strangely enough, I remember all of these from my CIS300 class which I had taken in 2004. I remember exactly how each of these was explained.
Vaughn Tolle said:
No particular requests; a binary tree might be good, and I agree with your complexity comment on the splay tree and AVL tree. Thanks for asking.
lindainks55 said:
Will and Gary -- love you both! Fun and funny. Gotta laugh, it's too overwhelingly sad not to!
Here's what their own are saying. You know the train has left the tracks when their very own loyal are saying so.
Robert Novak writes in his syndicated column about a conversation with Sen. Chuck Hagel, Republican of Nebraska: "In language more blunt than his prepared speeches and articles, he described Iraq as 'coming undone,' with its regime 'weaker by the day.' He deplored the Bush administration's failure to craft a coherent Middle East policy, blaming the influence of deputy national security adviser Elliott Abrams. . . .
"What about claims by proponents of the Iraqi intervention that failure to stop the terrorists in Iraq will open the door to them in the American homeland?
"'That's nonsense,' Hagel replied. 'I've never believed that. That's the same kind of rhetoric and thinking that neocons used to get us into this mess and everything that [Donald] Rumsfeld, [Paul] Wolfowitz, [Richard] Perle, [Douglas] Feith and the vice president all said. Nothing turned out the way they said it would.' . . .
Novak writes that Hagel's "harsh assessment resonates with many Republicans who believe Bush's war policy has led the party to disaster. Yet that message faces rejection from GOP primary voters."
Here's what their own are saying. You know the train has left the tracks when their very own loyal are saying so.
Robert Novak writes in his syndicated column about a conversation with Sen. Chuck Hagel, Republican of Nebraska: "In language more blunt than his prepared speeches and articles, he described Iraq as 'coming undone,' with its regime 'weaker by the day.' He deplored the Bush administration's failure to craft a coherent Middle East policy, blaming the influence of deputy national security adviser Elliott Abrams. . . .
"What about claims by proponents of the Iraqi intervention that failure to stop the terrorists in Iraq will open the door to them in the American homeland?
"'That's nonsense,' Hagel replied. 'I've never believed that. That's the same kind of rhetoric and thinking that neocons used to get us into this mess and everything that [Donald] Rumsfeld, [Paul] Wolfowitz, [Richard] Perle, [Douglas] Feith and the vice president all said. Nothing turned out the way they said it would.' . . .
Novak writes that Hagel's "harsh assessment resonates with many Republicans who believe Bush's war policy has led the party to disaster. Yet that message faces rejection from GOP primary voters."
lindainks55 said:
Here's an interesting blip. No accounting for what turns some on!
Marcus Mabry has a biography of Condoleezza Rice coming out. From the excerpts in Newsweek:
"Rice was drawn to Bush. 'First of all, I thought he was wonderful to be around,' she recalled, sitting on the couch in her State Department office. 'He was warm and funny and easy to be around. I thought he had just an incredibly inquisitive mind ... You could barely finish an explanation before he was digging into it.'
"Bush was also a bad boy. And Rice, according to friends and family, had a thing for bad boys. . . .
"Rice's friends insisted the attraction to Bush was platonic, but Brenda Hamberry-Green, her Palo Alto hairdresser, who had spent years commiserating with Rice over how hard it was for successful black women to find a good man, noticed a change when Rice started working for Bush. 'He fills that need,' Hamberry-Green decided. 'Bush is her feed.'"
As for Rice's job, Mabry writes that "the major task of the national security adviser was to be the skeptic-in-chief. . . . But Rice tended to enable the president's missteps rather than check them. The basis of the relationship had been formed in the campaign: she molded his instincts, she didn't challenge them. So as the administration marched toward war in Iraq, she didn't push back. She didn't question troop levels or the Defense Department's rosy post-Saddam scenarios. She didn't demand the administration devise a single, unified plan for after Saddam's statue fell. . . .
"Even Rice's friends, most of whom happen to be Democrats, say her affection for Bush blinded her to his failings. 'She thought he could do no wrong,' said one. . . .
"[S]tepmother Clara Rice offered a simpler explanation for why she stayed: 'she just can't say no to that man.'"
Marcus Mabry has a biography of Condoleezza Rice coming out. From the excerpts in Newsweek:
"Rice was drawn to Bush. 'First of all, I thought he was wonderful to be around,' she recalled, sitting on the couch in her State Department office. 'He was warm and funny and easy to be around. I thought he had just an incredibly inquisitive mind ... You could barely finish an explanation before he was digging into it.'
"Bush was also a bad boy. And Rice, according to friends and family, had a thing for bad boys. . . .
"Rice's friends insisted the attraction to Bush was platonic, but Brenda Hamberry-Green, her Palo Alto hairdresser, who had spent years commiserating with Rice over how hard it was for successful black women to find a good man, noticed a change when Rice started working for Bush. 'He fills that need,' Hamberry-Green decided. 'Bush is her feed.'"
As for Rice's job, Mabry writes that "the major task of the national security adviser was to be the skeptic-in-chief. . . . But Rice tended to enable the president's missteps rather than check them. The basis of the relationship had been formed in the campaign: she molded his instincts, she didn't challenge them. So as the administration marched toward war in Iraq, she didn't push back. She didn't question troop levels or the Defense Department's rosy post-Saddam scenarios. She didn't demand the administration devise a single, unified plan for after Saddam's statue fell. . . .
"Even Rice's friends, most of whom happen to be Democrats, say her affection for Bush blinded her to his failings. 'She thought he could do no wrong,' said one. . . .
"[S]tepmother Clara Rice offered a simpler explanation for why she stayed: 'she just can't say no to that man.'"
WSClark said:
"this renowned crack fighter pilot type?"
GSter, Bush gives new meaning to the term "crack fighter pilot."
GSter, Bush gives new meaning to the term "crack fighter pilot."
Gster said:
Will- Can you handle "cracked fighter pilot"?
Linda- Sen. Hagel is someone I've always admired, and when he speaks, I definitely listen.
Linda- Sen. Hagel is someone I've always admired, and when he speaks, I definitely listen.
lindainks55 said:
Was crack available to him during his drug heyday? Back when he couldn't pass the physicals.
WSClark said:
Back in the day, it was called free-basing. Actually the process is more dangerous than the current preferred method of rock cocaine, but the result is basically the same.
lindainks55 said:
And here's a fascinating finding from the latest Gallup Poll: "Americans rate General David Petraeus, the commander of U.S. forces in Iraq, as a more reliable source about what's going in Iraq than any of 15 other government, political, and military leaders measured in a recent Gallup Panel poll. President George W. Bush and Vice President Dick Cheney have reliability scores near the bottom of the list."
Bill Clinton, Hillary Clinton, Barack Obama, the first president Bush and Jimmy Carter are all among those considered more reliable source of information about Iraq than Bush and Cheney.
http://www.galluppoll.com/content/?ci=27421
Bill Clinton, Hillary Clinton, Barack Obama, the first president Bush and Jimmy Carter are all among those considered more reliable source of information about Iraq than Bush and Cheney.
http://www.galluppoll.com/content/?ci=27421
Julie said:
Good Morning!
Just a brief reminder,
Saturday May 12
OJ Watson Park
Shelter #1
11:30 - 3:30
The special meetup thread is up to 2 pages, you can go to the second page via a button at the top of the messages.
Just a brief reminder,
Saturday May 12
OJ Watson Park
Shelter #1
11:30 - 3:30
The special meetup thread is up to 2 pages, you can go to the second page via a button at the top of the messages.
Predestined said:
KENT, Ohio - A static-filled recording of the 1970 Kent State University shooting that killed four students raises questions not only about whether someone called on National Guardsmen to fire, but also who might have given the order.
ADVERTISEMENT
The tape was released Tuesday by Alan Canfora, 58, one of nine students wounded in the 1970 shootings. He played two versions of the tape — the original and an amplified version — in which he says a Guard officer issues the command, "Right here! Get Set! Point! Fire!"
http://news.yahoo.com/s/ap/20070502/ap_on_re_us/ke...
ADVERTISEMENT
The tape was released Tuesday by Alan Canfora, 58, one of nine students wounded in the 1970 shootings. He played two versions of the tape — the original and an amplified version — in which he says a Guard officer issues the command, "Right here! Get Set! Point! Fire!"
http://news.yahoo.com/s/ap/20070502/ap_on_re_us/ke...



Loading....