Priority queues are really important data structure in operating systems and network.
In operating systems it is used in scheduler for scheduling process according to their priorities... while in networks in it used to schedule packets of different protocols for scheduling the packets...
Priority Scheduling packet... http://en.wikipedia.org/wiki/Priority_queue
Saurabh
Saturday, September 26, 2009
Comprehensive list of Algos questions..
Apart from reading the list and question that you have already..
Just look at these questions.. Some of them are good...
http://inder-gnu.blogspot.com/2007/03/detecting-and-fixing-linked-lists-loops.html
Just look at these questions.. Some of them are good...
http://inder-gnu.blogspot.com/2007/03/detecting-and-fixing-linked-lists-loops.html
Get started with basic Latex
Recently i had to write a report in latex.
Started as following:
1. Installed latex on ubuntu...
sudo apt-get install latex
2. Installed a pdf reader on Ubuntu..
i chose to install xpdf for this purpose.
After this to test the latex thing..
vi firstExercise.latex
Opened up a file:
\documentclass[11pt]{article}
\begin{document}
This is the tex file...
\end{document}
!wq
To convert this latex to .pdf extension...
>>latex firstExercise.latex
This creates a .dvi file...
>>dvips -Ppdf -G0 -f -o firstExercise.ps firstExercise.dvi
This creates a .ps file...
>>ps2pdf firstExercise.ps firstExercise.pdf
This creates a .pdf file...
Read this file using xpdf...
We can view this file and feel happy and excited about putting our first step in Latex world...
Saurabh
Started as following:
1. Installed latex on ubuntu...
sudo apt-get install latex
2. Installed a pdf reader on Ubuntu..
i chose to install xpdf for this purpose.
After this to test the latex thing..
vi firstExercise.latex
Opened up a file:
\documentclass[11pt]{article}
\begin{document}
This is the tex file...
\end{document}
To convert this latex to .pdf extension...
>>latex firstExercise.latex
This creates a .dvi file...
>>dvips -Ppdf -G0 -f -o firstExercise.ps firstExercise.dvi
This creates a .ps file...
>>ps2pdf firstExercise.ps firstExercise.pdf
This creates a .pdf file...
Read this file using xpdf...
We can view this file and feel happy and excited about putting our first step in Latex world...
Saurabh
Monday, September 14, 2009
Visual C++ application
'MessageBoxW' : cannot convert parameter 2 from 'const char *' to 'LPCWSTR'
Solution to this is to change the character set to multi-byte character in project properties.
I encountered this while trying to run some basic application on OGRE....
Solution to this is to change the character set to multi-byte character in project properties.
I encountered this while trying to run some basic application on OGRE....
Sunday, September 13, 2009
Arithmetic Operation allowed on pointer
Only arithmetic operation allowed on Pointers us:
1. Addition of integers to array address
2. Subtraction from another pointer
No other operation is allowed. For instance division, Multiplication and addition is not allowed.
1. Addition of integers to array address
2. Subtraction from another pointer
No other operation is allowed. For instance division, Multiplication and addition is not allowed.
Friday, September 11, 2009
Installtion of OGRE and Visual studio setup
1. Visual studio setup-08
Go to dreamspark.com
Create account
Get the key
Install download manager
Download the Visual studio professional edition
Run the "autorun.exe" utility
I wasted my lot of time due to not using download manager.
2. Download the prebuilt SDK of OGRE from their site. Run it and install at some file path which does not include spaces.
3. Download OGRE wizard. This helps in some situations like having an OGRE SDK option on your "new project" link.
Try running this. This might be useful.
4. Setup a new project and run it. Be careful about the properties setting.
Will post later...
Will also try to install CEGUI thing tonight... so tonight is going to be the installation night... or may be tomorrow morning.
Let's see what productive thing i can do today.
Go to dreamspark.com
Create account
Get the key
Install download manager
Download the Visual studio professional edition
Run the "autorun.exe" utility
I wasted my lot of time due to not using download manager.
2. Download the prebuilt SDK of OGRE from their site. Run it and install at some file path which does not include spaces.
3. Download OGRE wizard. This helps in some situations like having an OGRE SDK option on your "new project" link.
Try running this. This might be useful.
4. Setup a new project and run it. Be careful about the properties setting.
Will post later...
Will also try to install CEGUI thing tonight... so tonight is going to be the installation night... or may be tomorrow morning.
Let's see what productive thing i can do today.
OGRE, Visual studio and CEGUI
Today i spent whole day on setting up OGRE and Visual studio on my account.
This was highly frustrating experience. I am a Java developer and usually prefer Eclipse as my IDE. Eclipse is really simple and intutive in its setting. I found Visual studio to be highly complex and ridiculous at some points.
Just to mention, whenever i create a new project my old projects are automatically closed. If i want to keep both of them open then i need to put them in same solution scope which is poor. Moreover all the files are dumped in the same folder and i need to create folder in the actual disc location to put some structure to the application.
I don't see the use of filters as they just get flat when i open the actual project location.
Will keep you posted on this.
This was highly frustrating experience. I am a Java developer and usually prefer Eclipse as my IDE. Eclipse is really simple and intutive in its setting. I found Visual studio to be highly complex and ridiculous at some points.
Just to mention, whenever i create a new project my old projects are automatically closed. If i want to keep both of them open then i need to put them in same solution scope which is poor. Moreover all the files are dumped in the same folder and i need to create folder in the actual disc location to put some structure to the application.
I don't see the use of filters as they just get flat when i open the actual project location.
Will keep you posted on this.
Subscribe to:
Posts (Atom)