Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Is my Tree code too long?
Post: RE: Is my Tree code too long?

Ok i refactored it to hell, code is super small. See below. But I still wonder am I doing it wrong? - Can the code be smaller? The code functions as desired and is fast and the memory issue is expecte...
BladedSupernova General Coding Help 5 2,668 Feb-12-2020, 01:26 AM
    Thread: Is my Tree code too long?
Post: RE: Is my Tree code too long?

Also I made the code smaller, is it really small now for what it does or not at all?? Just curious. tree = [''] window_start = 1 window_end = 4 for count2 in range(2): window = 'ababa'[window_start...
BladedSupernova General Coding Help 5 2,668 Feb-11-2020, 08:35 PM
    Thread: Is my Tree code too long?
Post: RE: Is my Tree code too long?

Nono, ['ab', [3, 8], 'b', [5], 'a', [7], 'b', 'a', [10], 'b', [12], 'a'] This tree above stores 2 branches 'abab' and 'baba'. My tree could store every 8 letters in 10MB of wikipedia text and you co...
BladedSupernova General Coding Help 5 2,668 Feb-11-2020, 05:38 PM
    Thread: Is my Tree code too long?
Post: Is my Tree code too long?

So I'm building my foundation for strong AI (a data compressor/predictor). You can see my code below (output is below it). It builds a tree made of 2 4-letter branches in this example (abab and baba)....
BladedSupernova General Coding Help 5 2,668 Feb-11-2020, 06:45 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020