Priority queue

C

Crirus

hello
I read somewhere about priority queue...what is that and Vb net have such
class?
 
C

Cor

Hi Crirus,

As well processpriority as thread priority,
There is a lot of information and examples on MSDN

Cor
 
C

Crirus

No, I mean a class that is a collection of objects... I heard about it from
a C programmer, but I have no ideea what is that and how it work
 
H

Herfried K. Wagner [MVP]

* "Cor said:
As well processpriority as thread priority,
There is a lot of information and examples on MSDN

A priority queue is a data structure, often implemented with a heap.
 
C

Crirus

Well you just told me now :)

Thanks for that link..do you have an engine to search for links?:)
you seems to have one for each answer
 
H

Herfried K. Wagner [MVP]

* "Crirus said:
Thanks for that link..do you have an engine to search for links?:)
you seems to have one for each answer

Google.com -> ""priority queue" C#", AFAIR.
 
C

Cor

Hi Herfried an Crirus

When you look for "priority queue" on Google you get the answer about the
priority thread and priority process. (I did that before I saw this message
and after I got your first message about this).

On Google it has to be "priority queue Win32 Heap" or something

But it is all push and pull in memory, what you want to do with that in
VB.net?

Cor
 
C

Crirus

I need for A star path finding algorithm
I have 2nodes collections called open and closed
Each node has a value attached to it.

I search the nodes for shortest distance between two nodes, meaning the
smalles sum of values attached

I have to select te best node(smallest value) from open list and Priority
queue give me that faster than a ArrayList, where I have to loop through all
nodes to see the best...
 
C

Cor

Hi Herfried,

Why are you always giving answers on not asked questions that seems if you
did told so.
2nd result when googleing on ""priority queue" VB.NET".

You said "priority queue" C#

By the way, with this search sentence is it the first one in the internatiol
search

But I win again therefore :))

Cor
 
C

Chris Dunaway

Well you just told me now :)

Thanks for that link..do you have an engine to search for links?:)
you seems to have one for each answer

Go to your local college or university bookstore (or Amazon) (or
<favoritebooksellerhere>) and get a text on Data Structures. Any good one
will explain this data structure and how to implement it, plus many others.

That was one of the best classes I ever took.
 
C

Crirus

Hi
I you have a sample, please post here

thanks

Chris Dunaway said:
Go to your local college or university bookstore (or Amazon) (or
<favoritebooksellerhere>) and get a text on Data Structures. Any good one
will explain this data structure and how to implement it, plus many others.

That was one of the best classes I ever took.

--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top