![]() |
![]() |
![]() |
![]() |
|
|
#31 | |
|
Senior Member
Join Date: Mar 2005
Posts: 255
|
Quote:
pseudo-code Code:
function bsearch(search_array, search_word, low_idx, high_idx)
/* search_array = array to search
* search_word = word to search for
* low_idx = index at which to start searching within the search array
* high_idx = index at which to stop searching within the search array
*
* function returns the index where the word is found, or -1 if the word
* is not found.
*/
middle_idx = 0 /* this will be set to the index in the middle of low_idx and high_idx */
loop while low_idx is <= high_idx
middle_idx = floor(low_idx + ((high_idx-low_idx)/2))
if search_word > word at middle_idx
low_idx = middle_idx + 1
else if search_word < word at middle_idx
high_idx = middle_idx - 1
else
the word has been found, it is at middle_idx. return middle_idx
end loop
word was not found. return -1
end function
wikipedia has a pretty good article on them - http://en.wikipedia.org/wiki/Binary_search |
|
|
|
|
|
#32 |
|
Member
Join Date: Jul 2009
Location: grenoble
Posts: 63
|
Yes this is a better idea than searching in a tree, realy shorter to code and same efficacity. Why do they bother us with trees at school?
![]() As you said, with this method, you would enventualy loose the return of the first matching word, but then you would just have to scroll less, would'nt you? |
|
|
|
|
#33 | ||
|
Senior Member
Join Date: Mar 2005
Posts: 255
|
Quote:
Quote:
I'm out of ideas at the moment. Good luck! |
||
|
|
|
|
#34 |
|
Member
Join Date: May 2009
Posts: 160
|
is it right that the ifo file is an DVD Movie info file?
http://img5.imagebanana.com/view/z75k9qn2/stardict.jpg |
|
|
|
|
#35 |
|
Member
Join Date: May 2009
Posts: 160
|
yeah! i have now an english - finnish dictionary =P
not really nessecary and it is a bit laggy but funny. would it not be very cool if everyody who get a knew finished dictionary post it here and you write them on the first site? |
|
|
|
|
#36 | ||
|
Member
Join Date: Jul 2009
Location: grenoble
Posts: 63
|
Quote:
But what you can do is uploading it on something like rapidshare and i'll make a list of the "compiled" dics on the first post ![]() The ifo file is just a text file, tty to open it with notepad and you'll see. Don't know about dvd movie ifo file. Quote:
I just implemented the binary search algorithm and it's about 40 to 100 times faster than the first one ![]() Don't have my cable so i cant try it on the S9 now, but tell me how it feels now ! |
||
|
|
|
|
#37 |
|
Member
Join Date: May 2009
Posts: 160
|
which upload site is legal and is there a site without creating an account?
EDIT: I have a problem i can't find the builder.exe folder? is there somebody who has vista and can tell me where to find it? Last edited by schorsch; 07-30-2009 at 04:31.. |
|
|
|
|
#38 | |
|
Senior Member
Join Date: Mar 2005
Posts: 255
|
Quote:
Nice! I'll have to check it out later. |
|
|
|
|
|
#39 |
|
Senior Member
Join Date: Mar 2005
Posts: 255
|
I'm having trouble decompressing builder.7z. 7-zip says 'can not open file builder.7z as archive'.
|
|
|
|
|
#40 |
|
Member
Join Date: May 2009
Posts: 160
|
http://rapidshare.com/files/26189302..._Dict.zip.html
the first dictionary in the list =) English - Finnish dictionary downloadable just 10 times =( but an start! i hope we can add some more dict!? ps: i search my created .sol files =P can you help me where to find it on an (german) vista pc? |
|
|
|
|
#41 |
|
Member
Join Date: May 2009
Posts: 160
|
and the next : http://rapidshare.com/files/26191271..._Dict.zip.html
=) an german englisch dictionary. this is real fun =P do you add a list on the first site? i think this could be a very cool thing! |
|
|
| Thanks from: |
|
|
#42 |
|
Kiss The Dog
Join Date: Feb 2009
Posts: 503
|
somebody has a dutch one?
![]()
__________________
Cowon S9 = Mighty |
|
|
|
|
#43 |
|
Member
Join Date: May 2009
Posts: 160
|
yes here an english dutsch one: http://rapidshare.com/files/26207297...utsch.zip.html
|
|
|
| Thanks from: |
|
|
#44 |
|
Kiss The Dog
Join Date: Feb 2009
Posts: 503
|
thank you schorsch but i can't find anything, i mean, whatever i type in, i get a message with - mot non trouvé -, why can't it be found?
__________________
Cowon S9 = Mighty |
|
|
|
|
#45 |
|
Member
Join Date: May 2009
Posts: 160
|
here some more dictionarys: =)
english-brazilian/portuguese: http://rapidshare.com/files/26207926..._port.zip.html english-czech:http://rapidshare.com/files/26208112...czech.zip.html english-danish:http://rapidshare.com/files/26207881...anish.zip.html english-german:http://rapidshare.com/files/262082077/eng-ger.zip.html english-greek:http://rapidshare.com/files/26207994...greek.zip.html english-spanish:http://rapidshare.com/files/262079727/eng-spa.zip.html finnish-english:http://rapidshare.com/files/262081466/fin-eng.zip.html german-hung.:http://rapidshare.com/files/262079924/ger-hung.zip.html ger-rus.:http://rapidshare.com/files/262082858/ger-rus.zip.html is there a chance to make the dictionary faster? |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|