(50g) Removing Objects From Lists Quickly
|
01-07-2019, 05:19 PM
(This post was last modified: 01-09-2019 11:10 PM by John Keith.)
Post: #3
|
|||
|
|||
RE: (50g) Removing Objects From Lists Quickly
Thanks, David.
From my (limited) understanding of set theory, the difference function (as well as intersection and, of course, union) should eliminate any duplicates. Set functions in Mathematica work this way. All three of those functions in GoferLists return lists with duplicate objects in some circumstances. I believe that this behavior is erroneous. (Maybe not- see post #11 below.) Along those lines, I also came up with a similar program for set intersection. It is also much faster than GoferLists' Intersect: Code:
The order of commands may seem strange but gives correct results faster than any other program I could come up with. Others are encouraged to improve the code, and especially to test it for correctness. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(50g) Removing Objects From Lists Quickly - John Keith - 01-05-2019, 05:16 PM
RE: (50g) Removing Objects From Lists Quickly - DavidM - 01-06-2019, 07:28 PM
RE: (50g) Removing Objects From Lists Quickly - John Keith - 01-07-2019 05:19 PM
RE: (50g) Removing Objects From Lists Quickly - DavidM - 01-07-2019, 08:05 PM
RE: (50g) Removing Objects From Lists Quickly - John Keith - 01-07-2019, 10:36 PM
RE: (50g) Removing Objects From Lists Quickly - DavidM - 01-09-2019, 06:29 PM
RE: (50g) Removing Objects From Lists Quickly - John Keith - 01-09-2019, 10:34 PM
RE: (50g) Removing Objects From Lists Quickly - Thomas Klemm - 01-09-2019, 08:31 PM
RE: (50g) Removing Objects From Lists Quickly - John Keith - 01-09-2019, 10:42 PM
RE: (50g) Removing Objects From Lists Quickly - Thomas Klemm - 01-09-2019, 10:56 PM
RE: (50g) Removing Objects From Lists Quickly - John Keith - 01-09-2019, 11:06 PM
|
User(s) browsing this thread: 1 Guest(s)