| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Comments:
<0> and only some indices do I set to a value <0> the indices are kept in a separate vector <1> vawjrwrk: its complicated. I just want to have Hashtables that point to other hashtables. <0> yep <0> dont worry <0> got it <2> nush_ no, that's a solution...what's the PROBLEM <1> and each hashtable bin hords a word <1> for example "this is a sentance" <1> each word is stored in a hashtable <2> nush_ that's a SOLUTION <1> the first hashtable stores the word this, and points to another hashtable with possible second words. In this case the second hashtable it points to would have the word "is", etc... <1> for a file of 100,000 sentances, i want to be able to check for a phrase that a user types into the command line. To find soft matches <2> not sure what a "soft match" is <3> Case insensitive? <1> so if there is a sentance that says " Brad pitt hit the reporter"
<3> If so, convert everything to upper OR lower. <1> if the user types in "pitt hit the" that is a match <3> Ooh. <3> strstr style <3> Oh c++, okay, okay <1> if someone types in "pitt reporter" its not a soft match... it has to be consecutive <1> so one or more consecutive words <2> yes, we call that "ordered adjacency" here (we have a product that searches 104 medical texts for what people type) <1> so i am using hashtables to do this. <2> interesting solution <4> what are you storing in the hashtable? <4> every word? <1> yes, with a pointer to a hash table of words that follows the current word <2> we build an "index" that keeps track of every location of each word <5> but, how big is that table? <4> wait, what:? <1> size is not important, default size when made is 101 <4> how are you deciding whether you have a match or nto <4> what are you checking against <1> well I have a nother algorithm for that which traverses the hashtables. <1> right now i'm just making the hashtables but i can't compile it <2> nush_ did you see the solution we're using? <1> yes, index <4> vawjrwrk: if you're able to say more, I'd like to hear more about it? <1> vawjrwrk: there is more than one solution for a problem <2> Cowmoo lemme get daughter from school, then home and dinner, say about 2 hours, I can tell you exactly how it works <1> I'm just trying to do my own :) <2> nush_ I'm well aware of that <4> fantastic, ok I look forawrd to it <4> I'm going out too but will be back in 4-5 hours <4> but yea, I'm interested <2> umm, it's 1730 here, ok, I'll be back on then for sure, daughter should be in bed by 2000 (wife is working tonight) <4> ah <2> so figure an hour to get daughter to bed and I'll be ****ing down a beer or 3 and back on line <2> ***uming that was just a netsplit and not a power failure <0> its not a nuclear blast <5> Quantum``, when you mentioned nuclear blast, are still some computers made of radio tubes <5> to be immune to emp? <2> the Russians have some <2> and not a power failure, my cvs server is still answering <0> I got my Faraday cage <5> how big are those computers? <5> and how fast? <2> nush_ what does that nexttable have in it if there's no "next table" ? <6> do you what could be wrong? i keep getting: error C2062: type 'int' unexpected <6> the specific line: <6> public: <6> cSky( <6> int divisions, <6> float height, <6> float horizon, // distance to horizon <6> LPSTR TextureFile = "sky.bmp", <6> int hTile = 1, <6> int vTile = 1, <6> ); <6> erm... 'bout that <7> http://www.marginalrevolution.com/marginalrevolution/2006/03/markets_in_ever.html <7> hahaha <6> sorry 'bout that <7> read that vawjr <7> or, did you take off already?
<2> I did, yesterday <7> what? <7> you did? <7> you read that blog? <2> oh no, the story <7> oh, I just like the comment he adds to the end. <7> What's most disturbing about this is how low the prices were, $50,000 for $1 million in contract value. Now let's remember Econ 101, what makes prices low? That's right, competition. So who was Cunningham competing with? <2> 5% is more margin than many companies make <2> so I don't consider it "low" <7> hmmm, I don't know <7> those plasma tvs <7> they're making like 30% on those <7> I hate finding out the cost to the store for things I want <7> or, well, it depends on whether or not I've already paid. <5> its 01:42 here and i need sleep <5> thanks everybody <6> http://pastebin.com/579421 can anyone tell me what is wrong with this declaration? I keep getting csky.h(34) : error C2062: type 'int' unexpected <8> here too <5> good night <8> night <5> Kalasanova, that makes us neighbours :) <5> where are you from? <8> the netherlands <5> ok, i;m yugoslavia <5> bye <9> c-bot exp <10> YUY0x7, well ... exp - #include <math.h> double exp (double x) Exponentiation and Logarithms (ISO) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_19.html#SEC390 <6> anyone? <6> :-s <8> is c-bot written in C or C++? <9> why only those options? <2> MrMuscolo nope <0> I made so many stupid mistakes today <2> and don't have time to put it in my compiler <0> its incredible <2> MrMuscolo what version of vc++ are you using? <6> 2005 <2> is that the FIRST error you get? <6> yeah <2> btw, inline INSIDE a cl*** declaration is redundant <6> after that i get a error C2238: unexpected token(s) preceding ';' (at the very beginning of the same file) <2> gotta go, back in 2 hours + <11> MrMuscolo maybe there's a problem in common.h <11> or <11> you didn't include stuff that defines... <11> LPDIRECT3DVERTEXBUFFER9 <11> etc <6> stuff that defines int :) <6> ? <7> Ok, vawjr <7> name all the liberties guaranteed by the first amendment <7> I failed miserably :( <11> religion, speech, press,... <11> ***embly <7> why do people do that? <7> see, if you answer in the channel <11> oh, sorry :/ <7> no one else can answer <0> im such an idiot, I failed to realise, if you take 2 vectors or random numbers each, and you sort them, that the correlation betwean them will be very high <11> yeah <12> hello ppl... <12> anyone here ever used ConTEXT editor? <7> really? <7> wouldn't it kind of depend on how many random numbers <7> and the range over which they're random? <0> well yes, but that doesnt matter, see they will both climb together <0> so there is a high correlation betwean them <7> ahhh <0> the moment series move in roughly the same way they are correlated <7> I'm not sure what you mean by correlation I guess. <0> I was focussed on randomness <0> yea I got correlation confused with similarity <12> Anyone here ever used ConTEXT editor? <11> Cquence no, but you can feel free to ask your next question
Return to
#c++ or Go to some related
logs:
BLIND CHIX gianho owz lyf+meaning pronounciator english #linux #AllNiteCafe zimbablue nForce4 esx
#linux lesfille
|
|