Re: [Tutor] tree or link-list questions.

2019-06-26 Thread mhysnm1964
Allan, Once again, thanks for the help. I need to read more on OOPS it is all new and that was my first attempt. I looked at nesting Dictionaries and it got quite complex fast with the length of the strings and the path as you have outlined. I have parked that structure style for now. All these a

[Tutor] data structures general query

2019-06-26 Thread mhysnm1964
All, General computer science question for data structures. When would you use the below structures and why? If you can provide a real life example on when they would be used in a program This would be great. I am not after code, just explanation. Link lists Double link-lists Binary tre

Re: [Tutor] tree or link-list questions.

2019-06-26 Thread Alan Gauld via Tutor
On 26/06/2019 11:34, mhysnm1...@gmail.com wrote: > The reason why I am using the tree structure like a file system. Is I am > going to attempt to write some code to walk down the tree based upon certain > conditions which I am still working on. Based upon the test conditions will > determine how I

Re: [Tutor] data structures general query

2019-06-26 Thread Alan Gauld via Tutor
On 26/06/2019 11:40, mhysnm1...@gmail.com wrote: > When would you use the below structures and why? If you can provide a real > life example on when they would be used in a program This would be great. > Link lists Link lists are very flexible and ideal for when you have a varying amount of dat

Re: [Tutor] Basic Question about Visualization for enduser

2019-06-26 Thread Oscar Benjamin
On Tue, 25 Jun 2019 at 17:08, Sinardy Xing wrote: > > My question is, how currently all of this great technology glue together > and as a final product for the enduser. Because I cant imagine that we > install Anaconda Jupyter Notebook at frontend for the enduser to use it, > and give end user bun

Re: [Tutor] data structures general query

2019-06-26 Thread Mats Wichmann
On 6/26/19 4:40 AM, mhysnm1...@gmail.com wrote: > All, > > > > General computer science question for data structures. > > When would you use the below structures and why? If you can provide a real > life example on when they would be used in a program This would be great. I > am not after cod

Re: [Tutor] data structures general query

2019-06-26 Thread William Ray Wing via Tutor
> On Jun 26, 2019, at 6:40 AM, mhysnm1...@gmail.com wrote: > > All, > > > > General computer science question for data structures. > > When would you use the below structures and why? If you can provide a real > life example on when they would be used in a program This would be great. I > am

Re: [Tutor] data structures general query

2019-06-26 Thread Mats Wichmann
On 6/26/19 11:59 AM, William Ray Wing via Tutor wrote: > One of the most useful (to me) structures is the double-ended queue ("from > collections import deque”). It creates a queue that can quickly remove an > item from one end and add an item to the other. Particularly useful for > displayin

Re: [Tutor] data structures general query

2019-06-26 Thread Alan Gauld via Tutor
On 26/06/2019 19:46, Mats Wichmann wrote: > I forgot to add the snide-comment part of "what are these good for": > > (a) binary search trees are excellent for Computer Science professors > who want to introduce recursion into their classes. > > (b) all the classic data structures are candidates

[Tutor] Range command

2019-06-26 Thread Brick Howse via Tutor
Hello all, New to programming and I noticed the range command did not function like it does in the tutorial. For example, I type range(5, 10) And the output is range(5, 10) In section 4.3 It shows it should display range(5, 10) 5, 6, 7, 8, 9 I'm using windows 10 Python 3.7.3 An

Re: [Tutor] data structures general query

2019-06-26 Thread Cameron Simpson
On 26Jun2019 11:01, Mats Wichmann wrote: On 6/26/19 4:40 AM, mhysnm1...@gmail.com wrote: Link lists I would guess be useful in an index for a database? I believe the "classic" use case is memory management - keeping track of chunks of memory. Flipping this, your typical ordered database ind

Re: [Tutor] Range command

2019-06-26 Thread Mats Wichmann
On 6/26/19 5:07 PM, Brick Howse via Tutor wrote: > Hello all, > > New to programming and I noticed the range command did not function like it > does in the tutorial. > For example, > I type > range(5, 10) > And the output is > range(5, 10) > > In section 4.3 > It shows it should display

Re: [Tutor] Range command

2019-06-26 Thread Alan Gauld via Tutor
On 27/06/2019 00:07, Brick Howse via Tutor wrote: > Hello all, > > New to programming and I noticed the range command did not function like it > does in the tutorial. > For example, > I type > range(5, 10) > And the output is > range(5, 10) You have a Python 2 tutorial but are using Pyth