Click here to Skip to main content
16,010,876 members
Home / Discussions / C#
   

C#

 
AnswerRe: learning C# - new operator - arrays Pin
leppie2-Jun-06 20:50
leppie2-Jun-06 20:50 
GeneralRe: learning C# - new operator - Generics - arrays Pin
venkat4563-Jun-06 3:43
venkat4563-Jun-06 3:43 
GeneralRe: learning C# - new operator - Generics - arrays Pin
S. Senthil Kumar4-Jun-06 20:49
S. Senthil Kumar4-Jun-06 20:49 
Questionc# userControl problem Pin
xxxpt2-Jun-06 15:28
xxxpt2-Jun-06 15:28 
QuestionProblem figuring out DataGridView Pin
PyroManiak2-Jun-06 13:34
PyroManiak2-Jun-06 13:34 
AnswerRe: Problem figuring out DataGridView Pin
kjosh2-Jun-06 16:36
kjosh2-Jun-06 16:36 
AnswerRe: Problem figuring out DataGridView Pin
kjosh2-Jun-06 16:41
kjosh2-Jun-06 16:41 
Questionwant to know the index of ArrayList during BinarySearch Pin
Rizwan Rathore2-Jun-06 10:59
Rizwan Rathore2-Jun-06 10:59 
Hi all,
I am trying to develop a text mining engine and in it i need to work on large number of files...and deal with lots of words... i ve made a word class which has following variables
public string term;
public int df;
public ArrayList tf = new ArrayList();
public ArrayList docID= new ArrayList();
public static int count;


here term is the variable wich contains the actual value of the word. now when user queries for a word i need to search all these terms and find out whether the term user wants exists or not....
i ve this word class sorted w.r.t the "term" variable so it means that i can apply binary search for finding the user query.....i m doing this by adding all the term variables of the class in an arraylist and then applying binary search over it....but the problem is that i need to know the index of the arraylist where the user's queried term exists.....and i dont know the way to find out the index Frown | :( i ve added the sample chunk of code here.....anyone plzz help
//adding all the term variables of Terminology class to the allTerms ArrayList.......
for(int i = 0; i < Terminology .count; i ++ )
{
	allTerms.Add(word[i].term);					
}

//queryList is the ArrayList that contains the pharase queried by the user in the form of //one string at one index
for(int j = 0; j < queryList.Count; j ++)
{
	if(allTerms.BinarySearch(queryList[j]) >= 0)	
	{
		need to know the index of allTerms ArrayList.
	}
}


looking forward for help
Regards,
AnswerRe: want to know the index of ArrayList during BinarySearch Pin
lmoelleb2-Jun-06 11:09
lmoelleb2-Jun-06 11:09 
GeneralRe: want to know the index of ArrayList during BinarySearch Pin
Rizwan Rathore2-Jun-06 11:29
Rizwan Rathore2-Jun-06 11:29 
GeneralRe: want to know the index of ArrayList during BinarySearch Pin
lmoelleb2-Jun-06 21:57
lmoelleb2-Jun-06 21:57 
QuestionSave Image from web browser Pin
Achuzan2-Jun-06 10:42
Achuzan2-Jun-06 10:42 
AnswerRe: Save Image from web browser Pin
Stephan Samuel2-Jun-06 11:45
Stephan Samuel2-Jun-06 11:45 
AnswerRe: Save Image from web browser Pin
Ed.Poore2-Jun-06 13:51
Ed.Poore2-Jun-06 13:51 
QuestionMonitor Bandwidth Usage Pin
Darren_2-Jun-06 10:28
Darren_2-Jun-06 10:28 
AnswerRe: Monitor Bandwidth Usage Pin
Stephan Samuel2-Jun-06 10:38
Stephan Samuel2-Jun-06 10:38 
GeneralRe: Monitor Bandwidth Usage Pin
Darren_2-Jun-06 10:45
Darren_2-Jun-06 10:45 
GeneralRe: Monitor Bandwidth Usage Pin
Darren_2-Jun-06 11:22
Darren_2-Jun-06 11:22 
GeneralRe: Monitor Bandwidth Usage Pin
Stephan Samuel2-Jun-06 11:33
Stephan Samuel2-Jun-06 11:33 
GeneralRe: Monitor Bandwidth Usage Pin
Darren_2-Jun-06 22:31
Darren_2-Jun-06 22:31 
QuestionWhat is "turning on a trace"? Pin
...---...2-Jun-06 9:37
...---...2-Jun-06 9:37 
AnswerRe: What is "turning on a trace"? Pin
leppie2-Jun-06 9:41
leppie2-Jun-06 9:41 
AnswerRe: What is "turning on a trace"? Pin
Chris Meech2-Jun-06 9:52
Chris Meech2-Jun-06 9:52 
AnswerRe: What is "turning on a trace"? Pin
Stephan Samuel2-Jun-06 9:59
Stephan Samuel2-Jun-06 9:59 
AnswerRe: What is "turning on a trace"? Pin
malikjhangirahmed@hotmail.com2-Jun-06 22:17
malikjhangirahmed@hotmail.com2-Jun-06 22:17 

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.