Huge Matrix pake HashMap

View: New views
7 Messages — Rating Filter:   Alert me  

Huge Matrix pake HashMap

by david_liauw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 
Tolong bantu dong... Bagaimana membuat Huge Matrix (Matrix berukuran besar misalnya Mat[1000000][1000000] menggunakan HashMap?
 
Thanks yah !
 
 
 
Regards,



Re: Huge Matrix pake HashMap

by Daniel Baktiar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Buat HashMap of HashMap bisa.Misal:

Map<Integer,Map<Integer,Double>> = new
HashMap<Integer,HashMap<Integer,Double>>();

jadi untuk matrix M(x,y): integer yang pertama sebagai index x, dan yang
kedua sebagai index y.
tapi kalau benar2 diisi value semua, bakal kena out of memory.

Mungkin yang dimaksud, bagaimana membuat sparse matrix menggunakan HashMap?


2009/7/2 david_liauw <david_liauw@...>

>
>
> Hi,
>
> Tolong bantu dong... Bagaimana membuat Huge Matrix (Matrix berukuran besar
> misalnya Mat[1000000][1000000] menggunakan HashMap?
>
> Thanks yah !
>
>
>
> Regards,
>
>  
>



--
Daniel Baktiar
Senior JEE* Monkey -- willing to work hard in the Java beans brewery for a
big bunch of bananas (http://dbaktiar.wordpress.com)

Re: Huge Matrix pake HashMap

by sm96 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

out of memory, alias memory-nya gak cukup

2009/7/2 david_liauw <david_liauw@...>:

>
>
> Hi,
>
> Tolong bantu dong... Bagaimana membuat Huge Matrix (Matrix berukuran besar
> misalnya Mat[1000000][1000000] menggunakan HashMap?
>
> Thanks yah !
>
>
>
> Regards,
>
>



--
syaiful.mukhlis
gtalk:syaiful.mukhlis@...

Bls: Huge Matrix pake HashMap

by welly tambunan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

key -> index dari row
value -> list of column




________________________________
Dari: david_liauw <david_liauw@...>
Kepada: jug-indonesia@...
Terkirim: Kamis, 2 Juli, 2009 12:07:11
Judul: [JUG-Indonesia]  Huge Matrix pake HashMap





Hi,

Tolong bantu dong... Bagaimana membuat Huge Matrix (Matrix berukuran besar misalnya Mat[1000000] [1000000] menggunakan HashMap?

Thanks yah !



Regards,


   


      Menambah banyak teman sangatlah mudah dan cepat. Undang teman dari Hotmail, Gmail ke Yahoo! Messenger sekarang! http://id.messenger.yahoo.com/invite/

Re: Huge Matrix pake HashMap

by Muhammad Rifai-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Waw, matriks sejuta kali sejuta.
Komputernya udah mantep kali. Kalo komputer ane sih bisa out of memory..
hehehhe

2009/7/2 sm96 <syaiful.mukhlis@...>

>
>
> out of memory, alias memory-nya gak cukup
>
> 2009/7/2 david_liauw <david_liauw@... <david_liauw%40yahoo.com>>:
>
> >
> >
> > Hi,
> >
> > Tolong bantu dong... Bagaimana membuat Huge Matrix (Matrix berukuran
> besar
> > misalnya Mat[1000000][1000000] menggunakan HashMap?
> >
> > Thanks yah !
> >
> >
> >
> > Regards,
> >
> >
>
> --
> syaiful.mukhlis
> gtalk:syaiful.mukhlis@... <syaiful.mukhlis%40gmail.com>
>  
>



--
Muhammad Rifa'i

Re: Huge Matrix pake HashMap

by hirasirojudin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

kayaknya mending taro di text file aja kali yach trus processingnya gunain
component seperti cosort kali yach...?
soalnya matrixnya itu udah maut bro...:hxihxihixhixhix

2009/7/10 Muhammad Rifai <ifhayz@...>

>
>
> Waw, matriks sejuta kali sejuta.
> Komputernya udah mantep kali. Kalo komputer ane sih bisa out of memory..
> hehehhe
>
> 2009/7/2 sm96 <syaiful.mukhlis@...>
>
>>
>>
>> out of memory, alias memory-nya gak cukup
>>
>> 2009/7/2 david_liauw <david_liauw@... <david_liauw%40yahoo.com>>:
>>
>> >
>> >
>> > Hi,
>> >
>> > Tolong bantu dong... Bagaimana membuat Huge Matrix (Matrix berukuran
>> besar
>> > misalnya Mat[1000000][1000000] menggunakan HashMap?
>> >
>> > Thanks yah !
>> >
>> >
>> >
>> > Regards,
>> >
>> >
>>
>> --
>> syaiful.mukhlis
>> gtalk:syaiful.mukhlis@... <syaiful.mukhlis%40gmail.com>
>>
>
>
>
> --
> Muhammad Rifa'i
>
>  
>



--
Hira Sirojudin
+628 111988846

Re: Huge Matrix pake HashMap

by Hendry Luk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You probably don't.
Sebaeknya pake DHT e.g. memcached, velocity, Rhino.DHT..

(btw instead of multi-dimensional hashmap_of_hashmap, sebaeknya
di-flattenned jadi standard URI lookup e,g. "/52342/10323"...)

2009/7/2 david_liauw <david_liauw@...>

>
>
> Hi,
>
> Tolong bantu dong... Bagaimana membuat Huge Matrix (Matrix berukuran besar
> misalnya Mat[1000000][1000000] menggunakan HashMap?
>
> Thanks yah !
>
>
>
> Regards,
>
>  
>