[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fw: CSE494 project1 memory usage



I dont see a need to allocate an array for the  matrix at all. I made the
VectorViewer.java to show that a array need not be allocated to store the
matrix.
  
 Here is in psuedocode.. how to do it
-------------------------------------
  for a_document in set_of_docs
	for a_term in set_of_terms
		if a_term=query_term 
		   call TermDocs(a_term) and determine
frequency(a_document,a_term)
	end for
  end for

______________________________________________________________________________

The above pseudocode (with lots of real Java Code :-)) will give you tfik. 


Ullas

"Well Begun is Half Done"