Well, thanks guys. This has been pretty interesting.
The point of this project was to get more familiar with nodes and I wanted to actually pull off using nodes, but I'm not sure how I'd go about doing it any more. I think an array will suffice for now. Until another day...
Search found 137 matches
- Fri 18 Sep, 2009 1:00 pm
- Forum: Programming Help
- Topic: [Java] Nodes (Circularly Linked Lists)
- Replies: 27
- Views: 37767
- Fri 18 Sep, 2009 4:18 am
- Forum: Programming Help
- Topic: [Java] Nodes (Circularly Linked Lists)
- Replies: 27
- Views: 37767
Re: [Java] Nodes (Circularly Linked Lists)
Hm... Okay, I think I will resort to a doubly linked list. If that doesn't work, it's an array.
- Fri 18 Sep, 2009 3:04 am
- Forum: Programming Help
- Topic: [Java] Nodes (Circularly Linked Lists)
- Replies: 27
- Views: 37767
Re: [Java] Nodes (Circularly Linked Lists)
Okay, I'm not sure if this can be done with a singularly linked list... Going off this method, how would this be done with being able to move ALL the nodes, starting from A, instead of E? I was thinking earlier today that this is how it should be done, but I couldn't rap my head around how to move m...
- Fri 18 Sep, 2009 12:45 am
- Forum: Programming Help
- Topic: [Java] Nodes (Circularly Linked Lists)
- Replies: 27
- Views: 37767
Re: [Java] Nodes (Circularly Linked Lists)
King Harold, that would be awesome! If you could explain of course :P. I just found a HUGE error in my algorithm. I figured out how to move my nodes, but my algorithm only works for n<5. I'm not exactly sure how the factoradic idea would work here, though. I don't need code or anything, I just need ...
- Thu 17 Sep, 2009 6:22 pm
- Forum: Programming Help
- Topic: [Java] Nodes (Circularly Linked Lists)
- Replies: 27
- Views: 37767
Re: [Java] Nodes (Circularly Linked Lists)
My only problem is actually knowing how to shuffle ALL the nodes around to create an entirely different circularly linked list of nodes. Say I have 4 nodes. Then there are (n-1)! = (4-1)! = 6 different possibilities of the best path that can be traversed. So we can label these nodes A, B, C, and D. ...
- Wed 16 Sep, 2009 9:05 pm
- Forum: Programming Help
- Topic: [Java] Nodes (Circularly Linked Lists)
- Replies: 27
- Views: 37767
[Java] Nodes (Circularly Linked Lists)
Okay, I have been developing a program to connect points in a "Tour" with the use of nodes. My project deals with the TSP ( Traveling Salesman Problem ). I have implemented both the Nearest Insertion Heuristic and the Smallest Insertion Heuristic. However, I want to develop a way to manage...
- Sat 12 Sep, 2009 10:47 pm
- Forum: Programming Help
- Topic: [General] Designing Programs with Physics
- Replies: 15
- Views: 30267
Re: [General] Designing Programs with Physics
Thanks calc84maniac, that's a pretty nifty program. So here's my code: :57.9→F :57.9→I :.1→V :.1→N :-9.8→A :1E-99→θ :θ→T :randInt(0,87→R :real(7,0 :While 1 : real(0,0 : real(1,R,int(-(F-57)),1,8,0,0,0,0,0,1 : F→I : N→V : V+AT→N : I+VT+.5AT^2→F : T+.01→T : If F≤0 : Then : θ→F : -.8N→N : θ→T : End :En...
- Fri 11 Sep, 2009 2:42 pm
- Forum: Programming Help
- Topic: [General] Designing Programs with Physics
- Replies: 15
- Views: 30267
Re: [General] Designing Programs with Physics
I have some basic knowledge of vector math, but I don't know how I'd go about updating the variables in that equation for each iteration of the loop. You wouldn't need to, you use that equation to calculate the new velocity after a bounce. How are x and y updated then, for the new position of the b...
- Fri 11 Sep, 2009 1:49 am
- Forum: Programming Help
- Topic: [General] Designing Programs with Physics
- Replies: 15
- Views: 30267
Re: [General] Designing Programs with Physics
Yes, "majoring in computer science" is what we say. To "major" in something means that's degree you're seeking. I have some basic knowledge of vector math, but I don't know how I'd go about updating the variables in that equation for each iteration of the loop. Since my ball is j...
- Thu 10 Sep, 2009 6:40 pm
- Forum: Programming Help
- Topic: [General] Designing Programs with Physics
- Replies: 15
- Views: 30267
Re: [General] Designing Programs with Physics
Wow, I think I'm completely lost. I got the ball to bounce correctly, but all I used was kinematics equations. Today, I showed my physics professor the equation v=i-2n(i·n), but he said he's never seen it before. I was trying to grasp it better, but I'm really confused :(. The kinematics equations w...
- Thu 10 Sep, 2009 1:12 pm
- Forum: Programming Help
- Topic: [General] Designing Programs with Physics
- Replies: 15
- Views: 30267
Re: [General] Designing Programs with Physics
So, what exactly are n and i? I'm not sure what a normal is or what the incident vector is supposed to be. Are these constants?
- Thu 10 Sep, 2009 2:34 am
- Forum: Programming Help
- Topic: [General] Designing Programs with Physics
- Replies: 15
- Views: 30267
[General] Designing Programs with Physics
I was sitting in my physics class today, bored as can be. So, what did I do? I pulled out my calculator of course! At first, I was refreshing myself with TI-Basic and of xLib when the thought crossed my mind, "Hey, since I am in physics class, why don't I code something that has to do with phys...
- Fri 26 Jun, 2009 3:17 am
- Forum: Programming Help
- Topic: [Java] Minesweeper Concepts
- Replies: 27
- Views: 46552
Re: [Java] Minesweeper Concepts
Ah, so it would be a good idea to set up the mines with a 2D array?
I haven't done much work with multi-dimensional arrays, but that doesn't mean I've learned about them and can use them. This may be a good route.
I haven't done much work with multi-dimensional arrays, but that doesn't mean I've learned about them and can use them. This may be a good route.
- Thu 25 Jun, 2009 11:07 pm
- Forum: Programming Help
- Topic: [Java] Minesweeper Concepts
- Replies: 27
- Views: 46552
[Java] Minesweeper Concepts
Well, I've decided to pick up another Java project. This time I want to make a clone of the classic Minesweeper game. However, I don't even know how the game works :cry:. Does anyone have any suggestions or who I should refer to for help? I just want to know the constructs of how the game works. I k...
- Wed 13 May, 2009 8:58 pm
- Forum: General TI Discussion
- Topic: Another Good Project (not mine)
- Replies: 1
- Views: 8447
Another Good Project (not mine)
I can't believe what everyone is cooking up! There are so many amazing projects going on. This is probably one of the best times in calculator history! I just looked over at TI-Freakware and saw Lachprog's latest update:
http://tifreakware.net/lachprog/
Keep up all the amazing work everyone!
http://tifreakware.net/lachprog/
Keep up all the amazing work everyone!