Click here to Skip to main content
16,016,022 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting key from the value Pin
N a v a n e e t h26-May-08 23:49
N a v a n e e t h26-May-08 23:49 
GeneralRe: Getting key from the value Pin
Guffa27-May-08 0:14
Guffa27-May-08 0:14 
GeneralRe: Getting key from the value Pin
N a v a n e e t h27-May-08 0:46
N a v a n e e t h27-May-08 0:46 
GeneralRe: Getting key from the value Pin
Guffa27-May-08 1:47
Guffa27-May-08 1:47 
GeneralRe: Getting key from the value Pin
N a v a n e e t h27-May-08 6:15
N a v a n e e t h27-May-08 6:15 
AnswerRe: Getting key from the value Pin
S. Senthil Kumar26-May-08 22:33
S. Senthil Kumar26-May-08 22:33 
GeneralRe: Getting key from the value Pin
N a v a n e e t h26-May-08 22:39
N a v a n e e t h26-May-08 22:39 
QuestionCompression... Pin
Reelix26-May-08 20:36
Reelix26-May-08 20:36 
Hi all!

I was wondering if anyone could assist me...

In a file, I have a large amount of strings, each separated by a comma.

In my current example, I have a LARGE string value, containing 1343 different string values, and a total of 573033 values (All different lengths) - Created by a program.

I'm wondering if there's and easy way to find which string value, when removed, will shorten the list the most (I'm messing around with compression Smile | :) )

Eg:

a,asdasd,asdasd,a,b <--- 3 different string values, 5 values

In the above example, both "asdasd" and "a" each appear twice, but if I remove "asdasd" from the example, it will be shortened the most.

I've tried using the dictionary class to count the amount of times a value appears (Which works...), but it still doesn't tell me the largest value, which appears the most times.

I was thinking about iterating through my result from the dictionary class, then multiplying the string length by the amount of times it appears to get a result (Which might work...), but I was wondering if there was any other way to do it...

Any help would be appreciated Smile | :)

-= Reelix =-

AnswerRe: Compression... Pin
Guffa26-May-08 21:47
Guffa26-May-08 21:47 
GeneralRe: Compression... Pin
Reelix26-May-08 22:02
Reelix26-May-08 22:02 
GeneralRe: Compression... Pin
Guffa26-May-08 23:17
Guffa26-May-08 23:17 
QuestionAdding presentationcode.dll as a reference to a project Pin
Chesnokov Yuriy26-May-08 20:31
professionalChesnokov Yuriy26-May-08 20:31 
QuestionHow to correct error Pin
usmanehsan26-May-08 20:22
usmanehsan26-May-08 20:22 
AnswerRe: How to correct error Pin
Nouman Bhatti26-May-08 20:26
Nouman Bhatti26-May-08 20:26 
QuestionHow to run your C# Application as Administrator in Vista? Pin
lovnin26-May-08 19:51
lovnin26-May-08 19:51 
AnswerRe: How to run your C# Application as Administrator in Vista? Pin
mav.northwind27-May-08 3:36
mav.northwind27-May-08 3:36 
QuestionHow to restrict other users to update the data, while one is doing updation in disconnected mode of database Pin
Krish Agn26-May-08 19:21
Krish Agn26-May-08 19:21 
AnswerRe: How to restrict other users to update the data, while one is doing updation in disconnected mode of database Pin
Ashfield26-May-08 21:20
Ashfield26-May-08 21:20 
GeneralRe: How to restrict other users to update the data, while one is doing updation in disconnected mode of database Pin
Krish Agn26-May-08 22:59
Krish Agn26-May-08 22:59 
GeneralRe: How to restrict other users to update the data, while one is doing updation in disconnected mode of database Pin
Ashfield27-May-08 21:50
Ashfield27-May-08 21:50 
Questionconvert C# 2005 Express Solution to Pro Pin
half-life26-May-08 19:17
half-life26-May-08 19:17 
AnswerRe: convert C# 2005 Express Solution to Pro Pin
Christian Graus26-May-08 19:26
protectorChristian Graus26-May-08 19:26 
GeneralRe: convert C# 2005 Express Solution to Pro Pin
half-life26-May-08 19:52
half-life26-May-08 19:52 
GeneralRe: convert C# 2005 Express Solution to Pro Pin
hairy_hats16-Jun-08 2:13
hairy_hats16-Jun-08 2:13 
AnswerMSI Plessey Check digit calculation Pin
wi_mohitmca26-May-08 18:52
wi_mohitmca26-May-08 18:52 

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.