Click here to Skip to main content
15,892,537 members
Home / Discussions / C#
   

C#

 
AnswerRe: Insert Obejct to sorted list Pin
Martijn Boeker26-Jul-09 21:55
Martijn Boeker26-Jul-09 21:55 
GeneralRe: Insert Obejct to sorted list Pin
bonzaiholding26-Jul-09 22:40
bonzaiholding26-Jul-09 22:40 
GeneralRe: Insert Obejct to sorted list Pin
Martijn Boeker27-Jul-09 9:19
Martijn Boeker27-Jul-09 9:19 
Generalreality check Pin
Luc Pattyn27-Jul-09 10:47
sitebuilderLuc Pattyn27-Jul-09 10:47 
QuestionHow do I add the floating Toolbar with TabPage like "Might and Magic V Map Editor" Pin
akira3225-Jul-09 22:46
akira3225-Jul-09 22:46 
AnswerRe: How do I add the floating Toolbar with TabPage like "Might and Magic V Map Editor" Pin
Abhijit Jana26-Jul-09 3:12
professionalAbhijit Jana26-Jul-09 3:12 
GeneralRe: How do I add the floating Toolbar with TabPage like "Might and Magic V Map Editor" Pin
akira3227-Jul-09 6:45
akira3227-Jul-09 6:45 
QuestionInsert object to a sort list in the most efficient way Pin
bonzaiholding25-Jul-09 22:39
bonzaiholding25-Jul-09 22:39 
I have a list of specific class.
Im doing some simulation and i want to receive in the end the 100 best result.
Lets say i have this class :

class A<br />
{<br />
int j;<br />
int t;<br />
<br />
}


and i want to save in some range of j and t the best 100 "A" elements that give me the low math.pow(j/t,2) (100 result of the lowest A that i have).

Right now im insert the result to the list and then sort the list with the Compare method. each time a take the smallest result of the list and then if the current result is more small then then the small one on this. If its is smallest then i insert it into the the array , sort it and then remove the last object and continue.

What is the best way to take a List/Array of sort element and just insert the Current element to it's place in the sorted List/Array and remove that biggest element of the list ? (In C# )

modified on Sunday, July 26, 2009 7:46 AM

AnswerRe: Insert object to a sort list in the most efficient way Pin
PIEBALDconsult26-Jul-09 4:53
mvePIEBALDconsult26-Jul-09 4:53 
QuestionWhen Firefox in work Pin
Fullmm25-Jul-09 21:37
Fullmm25-Jul-09 21:37 
AnswerRe: When Firefox in work Pin
Abhijit Jana25-Jul-09 21:46
professionalAbhijit Jana25-Jul-09 21:46 
AnswerRe: When Firefox in work Pin
Manas Bhardwaj25-Jul-09 22:18
professionalManas Bhardwaj25-Jul-09 22:18 
Questionmonitoring for iexplore.exe Pin
msgreat25-Jul-09 19:23
msgreat25-Jul-09 19:23 
AnswerRe: monitoring for iexplore.exe Pin
PIEBALDconsult25-Jul-09 19:30
mvePIEBALDconsult25-Jul-09 19:30 
GeneralRe: monitoring for iexplore.exe Pin
msgreat25-Jul-09 19:34
msgreat25-Jul-09 19:34 
GeneralRe: monitoring for iexplore.exe Pin
PIEBALDconsult25-Jul-09 19:43
mvePIEBALDconsult25-Jul-09 19:43 
GeneralRe: monitoring for iexplore.exe Pin
msgreat25-Jul-09 19:50
msgreat25-Jul-09 19:50 
GeneralRe: monitoring for iexplore.exe Pin
Giorgi Dalakishvili25-Jul-09 22:49
mentorGiorgi Dalakishvili25-Jul-09 22:49 
QuestionControlling per-application volume Pin
Member 330885925-Jul-09 19:03
Member 330885925-Jul-09 19:03 
QuestionWinforms gui and C# Pin
copec25-Jul-09 18:39
copec25-Jul-09 18:39 
AnswerRe: Winforms gui and C# Pin
Md. Marufuzzaman25-Jul-09 18:55
professionalMd. Marufuzzaman25-Jul-09 18:55 
AnswerRe: Winforms gui and C# Pin
PIEBALDconsult25-Jul-09 19:37
mvePIEBALDconsult25-Jul-09 19:37 
QuestionVscroll Pin
SajjadZare25-Jul-09 16:37
SajjadZare25-Jul-09 16:37 
QuestionQuery deployed Applications via GPO Pin
User 223019725-Jul-09 14:22
User 223019725-Jul-09 14:22 
Questionpng to jpg Pin
nryk25-Jul-09 11:03
nryk25-Jul-09 11:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.