{ From user Lonnie, Model Re_indexing_challeng at 16-May-2016 8:39:44 PM, encoding="UTF-8" } SoftwareVersion 4.6.2 { System Variables with non-default values: } TypeChecking := 1 Checking := 1 SaveOptions := 2 SaveValues := 0 NodeInfo FormNode: 1,0,0,1,0,0,0,,0,0,,0 Model Re_indexing_challeng Title: Re-indexing challenges Description: A collection of exercises involving re-indexing -- meaning computing a new array having the same data, but with different indexes. Author: Lonnie Chrisman~ Lumina Decision Systems Date: Mon, May 16, 2016 8:29 PM SaveAuthor: Lonnie SaveDate: Mon, May 16, 2016 8:39 PM DiagState: 2,1,0,640,380,17 FontStyle: Arial,15 FileInfo: 0,Model Re_indexing_challeng,2,2,0,0,C:\Users\Lonnie\Documents\Re-indexing challenges.ana Index Prev_State Title: Prev State Definition: 'state ' & (1..20) NodeLocation: 96,80,1 NodeSize: 48,24 {!40000|Att_PrevIndexValue: ['state 1','state 2','state 3','state 4','state 5','state 6','state 7','state 8','state 9','state 10','state 11','state 12','state 13','state 14','state 15','state 16','state 17','state 18','state 19','state 20']} Index Next_state Title: Next state Definition: CopyIndex(Prev_State) NodeLocation: 96,144,1 NodeSize: 48,24 Variable Src Title: Src Description: The starting arry, indexed by Prev_state. Definition: Table(Prev_State)(77,44,19,70,76,95,53,20,59,53,99,59,30,87,27,100,3,17,50,11) NodeLocation: 224,80,1 NodeSize: 56,24 ValueState: 2,676,105,416,303,0,MIDM Variable Src_re_indexed_to_Ne Title: Src re-indexed to Next_state Description: Your task here is to re-index Src from prev_state to Next_state. In this task, both indexes have identical elements. NodeLocation: 224,144,1 NodeSize: 56,32 WindState: 2,413,223,476,224 Index J Title: J Definition: 'a'..'t' NodeLocation: 96,216,1 NodeSize: 48,24 Variable Src_re_indexed_to_J Title: Src re-indexed to J Description: In this task, you are to re-index the array Src, indexed by Prev_state, to an array indexed by J. These two indexes have the same length, but different elements. The resulting array should have the same data as the original Src, but be indexed by J. NodeLocation: 224,216,1 NodeSize: 56,24 Module Solutions Title: Solutions NodeLocation: 488,104,1 NodeSize: 48,24 DiagState: 2,541,81,640,372,17 Variable Src_re_indexed_to_N1 Title: Src re-indexed to Next_state Description: Your task here is to re-index Src from prev_state to Next_state. In this task, both indexes have identical elements. Definition: Src[ Prev_State = Next_state ] NodeLocation: 104,56,1 NodeSize: 56,32 WindState: 2,413,223,476,224 Variable Src_re_indexed_to_J1 Title: Src re-indexed to J Description: In this task, you are to re-index the array Src, indexed by Prev_state, to an array indexed by J. These two indexes have the same length, but different elements. The resulting array should have the same data as the original Src, but be indexed by J. Definition: Src[ @Prev_State = @J ] NodeLocation: 104,128,1 NodeSize: 56,24 Variable The_odd_rows_of_Src1 Title: The odd rows of Src Description: In this task, you are to extract only the rows named in Odd_states. The result should be indexed only be Odd_states. Definition: Src[ Prev_State = Odd_states ] NodeLocation: 104,208,1 NodeSize: 56,24 WindState: 2,576,332,476,224 Close Solutions Index Odd_states Title: Odd states Definition: Subset(Mod(@Prev_state,2)) NodeLocation: 96,288,1 NodeSize: 48,24 ValueState: 2,718,90,416,303,0,MIDM Variable The_odd_rows_of_Src Title: The odd rows of Src Description: In this task, you are to extract only the rows named in Odd_states. The result should be indexed only be Odd_states. NodeLocation: 224,288,1 NodeSize: 56,24 WindState: 2,576,332,476,224 Close Re_indexing_challeng