
noRulez
Members-
Posts
15 -
Joined
-
Last visited
About noRulez
- Birthday 01/14/1979
noRulez's Achievements
Newbie (1/14)
0
Reputation
-
Yeah, but I was mentioning this for any future upgrades, etc... There could be things that he would miss out on...
-
I did notice that the ms website said that the 2003 upgrade to .NET was not available to academic version owners...so you might keep that in mind. It looks like there will be limitations. Correct me if I'm wrong on that.
-
Well, I have verified that my skew-setting after an insert works perfectly. Oh, -1 = left high, 1 = right high, 0 = balanced. Those are my numeric skews. My only problem now is that I can't figure out how to reset the skews after a rotation. My attempt so far has been to recurse down to the bottom, set the leafs to null, and then work my way up trying to use some sort of logical comparison of the leafs to figure out what the skew for the parent is, but that isn't working so far. Actually, it works for most cases...but not all. Hmmm...any ideas on that? Oh, and I set a skew to 3 to signify that it was a NULL pointer.
-
This is what I have so far without any rotations. It might actually be working...I think. Let me know if you see anything wrong with it. Sorry about the spacing, I'm not sure how to fix that...it just happens when I copy and paste out of the vis c++ ide template <class T> avlTree<T>::treeNode* avlTree<T>::insertNode(treeNode *tempNode, T keyVal){ if(tempNode == NULL){ //means you have found a spot in the tree tempNode = new treeNode; //create a new node for it tempNode->lc = NULL; //set it's left child to NULL tempNode->rc = NULL; //set it's right child to NULL tempNode->key = keyVal; //set it's key to what was passed in tempNode->skew = 0; //all leafs have a skew of zero if(this->head == NULL){ //if it's the first time, set head value head = tempNode; } return tempNode; } else{ if(keyVal<tempNode->key){ //move down the left side of tree int befSkewLC; if(tempNode->lc==NULL){ befSkewLC=3; } else befSkewLC = tempNode->lc->skew; tempNode->lc = insertNode(tempNode->lc,keyVal); if(befSkewLC==0){ tempNode->skew -= 1; } else if(befSkewLC==3){ if(tempNode->rc!=NULL) tempNode->skew = 0; else tempNode->skew=-1; } } else{ //move down the right side of tree int befSkewRC; if(tempNode->rc==NULL){ befSkewRC=3; } else befSkewRC = tempNode->rc->skew; tempNode->rc = insertNode(tempNode->rc,keyVal); if(befSkewRC==0){ tempNode->skew += 1; } else if(befSkewRC==3){ if(tempNode->lc!=NULL) tempNode->skew = 0; else tempNode->skew=1; } } return tempNode; } }
-
I'm wondering if anyone in this board knows a bit about AVL trees? My problem is short, but...in my mind...not simple. I'm having trouble figuring out how to update the skews of all the nodes after I do an insert. I have been through at least 200 web pages and none of them go into depth on this subject. They will tell you that the skew of the node is equal to the depth of it's right subtree minus the depth of it's left subtree. But how do you get the depth of either subtree? I am just wondering if anyone knows of a clean and simple way to update all the skews after an insert :) Thanks in advance.
-
Thanks divil. Looks promising.
-
This is my first .NET question. :) I have started playing around with C# today. I am starting out with a console app so I can get the feel of the syntactical changes from c++ to c#. I aplogize if this has been discussed already here, but I couldn't find a post about this. My question follows: Is there a .NET way of pausing for a keypress or something at the end of the program? In c++ I usually used system("PAUSE") or an alternative. I was wondering if there is some kind of special way to do this in c#. Otherwise I get the deal where my app closes as soon as it finishes which is not helping me out too much here. Thanks in advance. [edit]I'd like to use something other than ReadLine if possible[/edit]
-
Well, it registered, so I'm assuming it wouldn't allow two people to register the same product. I wasn't sure what # to put in for the PID so I used the number after the product description on the Help(About Microsoft Development Environment) window. I'm still not sure what step to take next. I will definitely contact microsoft to ask about whether that j# cd should have been in there or not. If it shouldn't have, then I will take the appropriate actions. Thank you all for your help. And everything seems to be working, so I'm ready to dive in! [edit] well, for the sake of completeness I decided to see what would happen if I tried to register the product again. I got the same exact screen that says: Registration Complete Thank you for registering your copy of Visual Studio .NET! Your registration is now complete. so, I'm not even sure now if it had been registered already [/edit]
-
So, here are 2 questions I have: 1) What does the certificate of authenticity look like and wasn't I supposed to get one? 2) I got a cd labeled Visual J# .net Standard as well as a form to fill out to get Visual J# when it comes out...hmmm Did you all get the standard edition or is there a professional version? I have Visual Studio .NET Professional so I don't know why I have a Standard J# edition. I'm confused. I emailed the guy and he assures me that it has never been opened. Somehow I think he is full of it.
-
Well, I took the rest of the day off of work to install this thing. The product Key is not working(how is that possible?) and I don't believe I got a certificate of authenticity with the product, or at least I can't find one. That is also supposed to have the product key. This is not looking good folks. [edit]I'm an idiot...the product key is working. Apparently I can't tell the difference between a B and an 8. ugh[/edit]
-
Well, the box came and was not shrink-wrapped. It looks as if though it has been opened because the seals were wrinkled and a little messed up. Also, a Visual J# cd was in there...so, if they didn't ship originally then it's obvious that the box was opened and that was put in there. The box was also in pretty horrid condition, but that's ok. Hopefully it's not registered. I don't have time to install it until later tonight. I guess I'll be happy as long as it isn't registered.
-
Out of curiosity: How does that tell you that it is more likely to be authentic? That does make me feel better though...I am a bit worried.
-
Dad, I need some money. ;)
-
Well, I bought it :) I will let you all know what happens. I am going to be very mad if it turns out to be one of those deals where they open it, and then re-shrink wrap it.
-
Does this seem like a good deal? http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=2302760176&category=182 I asked this question in the VB forum Random thoughts, but it got closed out...so, I'm asking again here :) Also, why does it say professional comes with J# on one page, and it says that it only comes with vb .NET, c++.NET, and c#.NET on the other? http://shop.microsoft.com/Referral/ProductInfo.asp?siteID=11128&typeID=2 http://msdn.microsoft.com/vstudio/howtobuy/choosing.asp