in reply to Items in Order
Ordered Array: (1,2,3,8,4,5,6)I know that 8 is there in the middle and it is correct. It is just a sample of some items which are represented by let's say symbols (here integer numbers) and the provided is let's say the current order of items arrangements.
Given Array: (2,1,4,3,5)Looking at the common maximum length 'ordered subsets' of both the array.
(2,3,5) (1,3,5) (2,4,5) (1,4,5)Thus maximum length subset I can find here is '3' and above 4 are such subsets.
(1,2,3,8,5) (1,2,8,4,6)etc.. But it's not part of the given array.
(1,4) (8,6) (2,3)Are there and is also part of the given array but small in length (2) compared to what we found earlier.
Thanks,
Artist
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re2: Items in Order
by tye (Sage) on Dec 11, 2002 at 23:35 UTC |