Click here to Skip to main content
15,949,686 members
Home / Discussions / C#
   

C#

 
AnswerRe: GetObject Pin
Colin Angus Mackay18-May-06 4:28
Colin Angus Mackay18-May-06 4:28 
GeneralRe: GetObject Pin
samoilb18-May-06 5:52
samoilb18-May-06 5:52 
AnswerRe: GetObject Pin
mav.northwind19-May-06 5:37
mav.northwind19-May-06 5:37 
QuestionHow to Register Windows Service usijng Registry Editor Pin
VenkataRamana.Gali18-May-06 4:21
VenkataRamana.Gali18-May-06 4:21 
AnswerRe: How to Register Windows Service usijng Registry Editor Pin
Ravi Bhavnani18-May-06 4:39
professionalRavi Bhavnani18-May-06 4:39 
QuestionHandwriting program help? Pin
eric_tran18-May-06 3:39
eric_tran18-May-06 3:39 
GeneralRe: Handwriting program help? Pin
Guffa18-May-06 4:05
Guffa18-May-06 4:05 
GeneralRe: Handwriting program help? Pin
eric_tran18-May-06 4:09
eric_tran18-May-06 4:09 
GeneralRe: Handwriting program help? Pin
mav.northwind18-May-06 5:22
mav.northwind18-May-06 5:22 
QuestionVery Important : How to Get Value of DatagridBoolColumn in Datagrid ? Pin
hdv21218-May-06 3:29
hdv21218-May-06 3:29 
AnswerRe: Very Important : How to Get Value of DatagridBoolColumn in Datagrid ? Pin
Naveed Kamboh18-May-06 5:01
Naveed Kamboh18-May-06 5:01 
Questionsynchronise folder structures Pin
V.V.Thakur18-May-06 3:21
V.V.Thakur18-May-06 3:21 
Questiona few important questions about forms ? Pin
cmpeng3418-May-06 2:59
cmpeng3418-May-06 2:59 
AnswerRe: a few important questions about forms ? Pin
stancrm18-May-06 3:13
stancrm18-May-06 3:13 
AnswerRe: a few important questions about forms ? Pin
Leyu18-May-06 8:13
Leyu18-May-06 8:13 
QuestionThe Server is not operational when authenticating user to active directory Pin
krishna nimmalapudi18-May-06 2:46
krishna nimmalapudi18-May-06 2:46 
AnswerRe: The Server is not operational when authenticating user to active directory Pin
mav.northwind18-May-06 5:20
mav.northwind18-May-06 5:20 
QuestionRe:Palm Desktop software Pin
Smithasondur18-May-06 2:31
Smithasondur18-May-06 2:31 
Questiontrying to change screen resolution Pin
Alex Cutovoi18-May-06 2:21
Alex Cutovoi18-May-06 2:21 
QuestionRemoving stopwords Pin
Rizwan Rathore18-May-06 1:51
Rizwan Rathore18-May-06 1:51 
Hi all, i need help in removing stop words i mean i ve an ArrayList wich contains about 10000 words each word is stored at each index of ArrayList and i ve to remove all the occurences of some 300 words wich are also stored in an array list well i m trying to do this like this

for(int i = 0; i < stopWords.Count; i ++)			
{
	while(totalWords.Contains(stopWords[i]))
	totalWords.Remove(stopWords[i]);
}


i have also tried to do this through this way

for(int i = 0; i < totalWords.Count ; i++)
{
	for(int j = 0; j < stopWords.Count; j++)
	{
		
		if(totalWords[i].Equals(stopWords[j]))
		{
			totalWords.Remove(totalWords[i]);							
			i--;
		}
	}
}


but both of these methods r taking ages to complete Frown | :( .... so plz anyone tell me some better and efficient appraoch then this....in the above code totalWords is the arraylist wich contains all the words and stopWords is the arraylist that contains the words wich r to b removed
lookin forward for help

Regards,





-- modified at 8:09 Thursday 18th May, 2006
AnswerRe: Removing stopwords Pin
Robert Rohde18-May-06 2:36
Robert Rohde18-May-06 2:36 
GeneralRe: Removing stopwords Pin
Rizwan Rathore18-May-06 2:49
Rizwan Rathore18-May-06 2:49 
GeneralRe: Removing stopwords Pin
Robert Rohde18-May-06 3:00
Robert Rohde18-May-06 3:00 
GeneralRe: Removing stopwords Pin
Rizwan Rathore18-May-06 4:12
Rizwan Rathore18-May-06 4:12 
GeneralRe: Removing stopwords Pin
Robert Rohde18-May-06 4:21
Robert Rohde18-May-06 4:21 

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.