Search found 3 matches

by Assil
Tuesday 19 April, 2011 - 17:29
Forum: Enterprise Dynamics 4DScript
Topic: Applying a binary search to a table of an atom
Replies: 1
Views: 3450

Applying a binary search to a table of an atom

Say I have an atom containing a table with a lot of values in it. Can I apply a Binary Search algorithm to find the row containing that value? Well, to apply any search algorithm, first make sure that the table is appropriately sorted, that is, the column that needs to be searched, has to be sorted....
by Assil
Tuesday 19 April, 2011 - 17:22
Forum: Enterprise Dynamics 4DScript
Topic: Applying a QuickSort algorithm to a table of an atom
Replies: 1
Views: 3740

Applying a QuickSort algorithm to a table of an atom

Say I have atom atmTest which contains two columns. Is it possible to sort the table by using a fast QuickSort algorithm? Well, there is no builtin, off the shelf, functionality in ED that does this, but you can easily make your own method. Here is the code. The function takes 3 to 4 parameters. The...
by Assil
Tuesday 19 April, 2011 - 17:07
Forum: Enterprise Dynamics 4DScript
Topic: Ins and outs of atom pointer referencing
Replies: 0
Views: 30261

Ins and outs of atom pointer referencing

Ins and outs of atom pointer referencing Level: advanced Sometimes it is desirable to use direct atom referencing instead of referencing via channels. So how can this be achieved? In order to make pointer referencing work, we first need to understand the nature of pointers. So, what are pointers? T...