Sort Algorithm with SCL(S7)

Vokal12

Member
Join Date
Jan 2014
Location
Kaiserslautern
Posts
1
Hello,
i habe a table with 2000 unsorted elements.i will like to sort them with an input.
For example:
n is my input
Tab:[9,0,3,2,1,4,6,5,8,7]
if n:=3
1. step: [0,1,2]
2. step:[0,1,2,3,4,5]
3. step:[0,1,2,3,4,5,6,7,8]
4. step:[0,1,2,3,4,5,6,7,8,9]
if n:=4
1. step: [0,1,2,4]
2. step:[0,1,2,3,4,5,6,7,8]
3. step:[0,1,2,3,4,5,6,7,8,9]

i have already sort algorithms(Bubble,Insertion,...) but now i want to optimize my algorithm with this input.

why can i do that?
Thks
Vokal12
 

Similar Topics

Hi all, I need some help here please. I'm trying to understand the SCL programming example included in the SIEMENS SCL official documentation...
Replies
1
Views
7,825
I have a RADIXSORT implementation for S7 ! (not quite finished ... maybe tomorrow) I would like to see some alternative ... program examples!
Replies
22
Views
10,317
I have an unusual task with a PanelView Plus 7 (running v11 firmware) and a CompactLogix. The customer wants to place a version number string in...
Replies
3
Views
613
Hello all, I was looking into different sorting techniques and actually found a bubble/insertion sort sample code file on Rockwell's site. Only...
Replies
20
Views
5,252
Hello all, I am attempting to sort a selection list via 'part-selection' buttons. Ex. a certain type of model is selected, I only want to have...
Replies
5
Views
1,355
Back
Top Bottom