Page 2 of 6 FirstFirst 123456 LastLast
Results 11 to 20 of 53

Thread: Tengo Copy. Legalities? Usefullness? Thoughts?

  1. #11
    Freeway Creator oeri's Avatar
    Join Date
    Jul 2005
    Location
    Pittsburgh, PA
    Posts
    522
    Quote Originally Posted by pRoFiT View Post
    Okay for the programming side of it. So curently i have to search the file once per letter typed. Each read from the file returns a number and a word, Also an integer which i will use later for popularity of the word.
    There's a big slowdown. Load the file into memory. Perhaps make an array that contains each word and its values.

    So CdR, i was kind of on the same page. I was thinking of creating the dictionary database for each starting letter group i.e. qwert.dic yuiop.dic etc.
    This won't work. What if there are words that are the exact same numbers but have different starting letters?

    Quote Originally Posted by CdRsKuLL View Post
    was having a little think whilst I drove.. if you also organised the text file lin order of length of word.. ie.. ape , apple , applecart then this would also help with the speed. It would be quite easy to write a little app that loads a list of words, alphas them, then sorts them into length and ouputs them to another txt file.. as you say you would have some words that are more popular than others.. maybe like you say indexing them with a rating 1 to 9.. so you would have 1and 5apple 5applecart etc.. so it would then show the 1's first etc.. this still requires some nice coding :-) cant wait to see what you come up with
    This is also a good idea. Make separate arrays for each word length.

  2. #12
    Maximum Bitrate pRoFiT's Avatar
    Join Date
    Apr 2005
    Location
    Fresno, CA
    Posts
    798
    Quote Originally Posted by oeri View Post
    There's a big slowdown. Load the file into memory. Perhaps make an array that contains each word and its values.
    Yah but 100,000 words into memory. I would do pointer based array but VB sucks for pointers. I'm tempted to install delphi and write it in that. Its pascal based and im better at pascal.

    Quote Originally Posted by oeri View Post
    This won't work. What if there are words that are the exact same numbers but have different starting letters?
    It would sort by popularity of the word used. So if you use "the" alot then "the" would come up first. If it was the same popularity of another word then it would be alphabetical next. I was going to use an integer for that but desided a byte gives me 0-255. This should be enough.......i may have to average them somehow. like when you use a word it goes from 0 to 255 as long as nothing else in the lists is 255. Then just divide by 2 to place the next least popular ie 0, 127, 255.....hmm..i still need to think about how this will work.

    Quote Originally Posted by oeri View Post
    This is also a good idea. Make separate arrays for each word length.
    Yes then i could have 6 arrays to pull data from. that would make it real quick. Not sure how much memory these arrays are going to take up.
    Um, I guess this is where you put something witty.WITTY

    My Web site, in the design stage. http://home.comcast.net/~cstrachn

    Modified RRSkinEditor http://www.mp3car.com/vbulletin/rr-skins/65723-rrskineditor-bugs-fixes-comments-current-progress-outdated.html

  3. #13
    Constant Bitrate Playerbeat's Avatar
    Join Date
    Apr 2005
    Location
    San Jose, CA
    Posts
    120
    7" TouchScreen Carputer
    Rockford Fosgate 1501BD and Rockford 551s
    12" MTX 9500 in a SS* or a 12" Brahma in a SS*
    ZAPCO COMPONENTS in front and RFs in rear
    2 YellowTops and a 200amp Iraggi Alternator
    *Snell Shell box from nolteaudio.com

  4. #14
    Raw Wave shotgunefx's Avatar
    Join Date
    Apr 2005
    Location
    Boston, MA
    Posts
    1,800
    There are various structures that would help. Have you though about a bsp tree for quick indexing?

    You'd probably want order it by the "keyed" text sequence.

    Take a peek at Berkley DB would be useful, scales great, is freely available for almost all platforms and has a BSP type record set built in. Lot's of languages have bindings for it.

  5. #15
    Maximum Bitrate pRoFiT's Avatar
    Join Date
    Apr 2005
    Location
    Fresno, CA
    Posts
    798
    Thanks guys. I think my original plan was fast enough. Currently im using pictures on the screen for a nice look. I switched to buttons with pictures on them and my speed is as fast as i can click. Although this is after i recreated my database to 6 dictionary files. Each at 700k.

    So i thought a little about this after i saw the speed increase. you guys thought reading a 3 meg file would slow the program down. First off most of the newer hard drives have 4 to 8 megs bufferd. Im only reading 2.7 megs. most likley the whole file is in the hard drive buffer. Second, and im not too sure on this because i dont remeber if MBs stands for mega bytes or bits a second, the hard drive has a read of 133mbs. So if it means megabits then divide by 8 = 16.6 Mbytes a second. so my 3 meg file divide by 16.6 seconds = .18 of a second to read the whole file. that should be quick enough. but now that i made it faster, 1/6, it reads like at .03 of a second.

    Maybe i'm wrong, but if i am that would mean mega bytes a second and i dont even want to calculate that.

    So sufice to say it runs really quick now. I'm working on the popularity of the word right now and i kinda messed it up. now when you try the word again you can only get that word. and nothing else. So when i get that fixed i will put out another alpha teaser. With the speed increase.
    Um, I guess this is where you put something witty.WITTY

    My Web site, in the design stage. http://home.comcast.net/~cstrachn

    Modified RRSkinEditor http://www.mp3car.com/vbulletin/showthread.php?t=65723

  6. #16
    Freeway Creator oeri's Avatar
    Join Date
    Jul 2005
    Location
    Pittsburgh, PA
    Posts
    522
    Quote Originally Posted by pRoFiT View Post
    So sufice to say it runs really quick now. I'm working on the popularity of the word right now and i kinda messed it up. now when you try the word again you can only get that word. and nothing else. So when i get that fixed i will put out another alpha teaser. With the speed increase.
    That's why you should back up your source every day

  7. #17
    Maximum Bitrate pRoFiT's Avatar
    Join Date
    Apr 2005
    Location
    Fresno, CA
    Posts
    798
    So far its only like 230 lines of code. I could probably start from scratch and have it done in an hour or so. Maybe. Anyways i fixed it. I was putting my data back into the database at the wrong position also So every word used was in the database twice. Plus the mess up i had was related butmore like a broken feature i was adding. Now it works. Although my bubble sort is slow Its been so long since ive used sorting algorithyms. I think quicksort is fast. Anyways i bubble sort the favorate word to the top of the list and then the database is already alphabetical.

    So i might back up what i have today to my memory stick. Maybe i can get some free time like you oeri and work at work

    Anyways maybe tomorrow i will have another alpha to show. Anyone know how to highlight one word in richtext. like bold text
    Um, I guess this is where you put something witty.WITTY

    My Web site, in the design stage. http://home.comcast.net/~cstrachn

    Modified RRSkinEditor http://www.mp3car.com/vbulletin/showthread.php?t=65723

  8. #18
    Maximum Bitrate pRoFiT's Avatar
    Join Date
    Apr 2005
    Location
    Fresno, CA
    Posts
    798
    okay updated alpha 2

    http://home.comcast.net/~cstrachn/quicktype.rar

    shift key may cause crash. pictures for it are linked to e:\up.jpg and e:\down.jpg
    Um, I guess this is where you put something witty.WITTY

    My Web site, in the design stage. http://home.comcast.net/~cstrachn

    Modified RRSkinEditor http://www.mp3car.com/vbulletin/showthread.php?t=65723

  9. #19
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,469
    Page URL Not Found!!

  10. #20
    I see dead kittens Quattro's Avatar
    Join Date
    Dec 2003
    Location
    New York
    Posts
    2,922
    Quote Originally Posted by CdRsKuLL View Post
    Page URL Not Found!!
    i get the same error.
    Installed
    Asus A7N8X-VM - AMD Mobile Athlon 2400
    512 Ram - 60GB HD - Opus 150w
    Lilliput 7" - Rikaline 6010
    [00000000000001100010-] 98% Completed

    Check Out My Install!!!

Page 2 of 6 FirstFirst 123456 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •