Swap Last
updated on
2011/2555
12
10
,
a
full
moon day;
Brief introduction: in 1995, this algorithm was invented together with classmate Ig. Wong [ at 10PM; at main library; while doing Computer Architecture homework assignment ], while studying for a MS degree in Computer Science, Western Illinois University, Macomb, Illinois, USA;
Swapping Two Integer Variables Without Temporary
Variable; By utilizing 3 exclusive-or gates, two integer variables
can be swapped ... ;
e.g. x^=y^=x^=y; in C language; Notice that all
the bits in the variables
x and
y
will be
swapped by the x-or gates; Also see:
Materials;
Pin pointing technique
for optical computing; Processor; Toggle; Transistor;
Time . Space . Action, Eastern Thought's concept must be understood 1st, and then how a processor behaves as a pivot table in time can be further studied; Swap is one of the most difficult software techniques, and beyond this swapping technique, hardware engineering must be learnt such as HOW time is calculated in ACT1 stage [also see: 2000s' "light_rate" 1.... and 1 is in 24mm natural time aka "tic tic tic" in analog quartz . ...], simulation of HOW future parallel time is calculated for a processor in ACT2 stage, and ACT3 stage natural time slows down due to very very far distance away from our universe [a Myanmar's imaginary hyperspace craft's problem], ... ;
ASS, activate symmetric swapping ... ;
Assume that variable x contains 5 in base 10. And variable y contains 10 in base 10.
Therefore,
|
|
x | value | in | base | 2 | is | : | 0101 | ; |
|
|
y | value | in | base | 2 | is | : | 1010 | ; |
|
|
x | value | in | base | 2 | is | : | 1010 | ; |
|
|
y | value | in | base | 2 | is | : | 0101 | ; |
ISS, inhabit symmetric swapping ... ;
IFF 88...88 aka light_rate, ☟Ⓞᅍ%^=ᅍ%^=ᅍ%^=ᅍ%;
IFF 1..1, ☟Ⓞɟ♯^=ɟ♯^=ɟ♯^=ɟ♯;
IFF language, x^=y^=x^=y;
Remark: USA MYANMAR NET provides / allows the swapping technique for further scientific testing purposes with / without propagation delay, clock cycles in pipelining, and etc. ... Formula?
。
|
|
( |
|
|
, |
|
♯ | n | m | , |
|
|
new | , | ... | ) | { | ||||
|
|
base |
|
; | ||||||
![]() |
i | r | o | Colour | Wave | Form | { | ||
| base |
|
= |
|
; | |||||
| IFF | ( | base |
|
== | ♯ | n | m | ) | |
| { | |||||||||
|
|
= | new | ; | ||||||
| } | |||||||||
| } | |||||||||
|
|
base |
|
|||||||
| } | system | ( |
|
... |
variable light, also see:
photochromatics; IFF
2,3 dimensional, also see:
3 lights ... ; IFF 3,4
dimensional and developing
Universal Positioning System,
also see: 3 lights prompt 2
events of 90°
... ;
using artificial intelligence (variable; number; object; ... ) shifting time line in numerological dimension for gravity dimension computers ... ; using usamyanmar.net's 1 time machine ... ;
Also read, 2011 April, embedded system design, Pg. 24, Is lock-free programming practical for multicore, semantics of a typical implementation of CAS, or atomic compare-and-swap, www.embedded.com; compare and then swap; ... ; Remark: 3 yellow colors for 3 lights in our universe; prior to linked list structure, lights as instruction into gravity dimension computer, lights vary if gravity is applied, nm unit with number can define which color after resistance R, fixed time line i.e. 24mm, 12mm, 6mm, 3mm, ... with 1 time machine only, develop gravity dimension computer in numerological dimension ... ;
Above logic can compare and swap, e.g. for each predefined variable, for example:
by using assignment operator, variables can be predefined variables,
e.g. X = 345; Y = 456; Z = 567; and then
e.g. ♯ = X; ♯ = Y; ♯ = Z; Notice that light can be predefined here ... ; Also notice that ♯ is one of the AI characters, within the domain;
Shifting X's, Y's, Z's, ... , by time by time, with fixed time line, i.e. 24mm, 12mm, 6mm, 3mm, ... , using usamyanmar.net's 1 time machine; Similar to Windows' Task Manager's Performance WHERE 1 satellite designer can adjust clock's interval with its floating point values i.e. Sqrt 2, Sqrt 2.01, Sqrt 2.19, and so on ... ; For basic understanding of IT, usamyanmar.net, using Sqrt 2 only ... ;
IFF kuru kuru of 5, prior to command line parameter, to prompt to user ... ; IFF Singapore, also see: Informatics, because global data centers are most likely to be in Singapore ... ;; Trillions dollars in trading, a Myanmar may be bluffing ... ;
Also see: ColdBoot.ini, booting a system with green vs. green at the beginning, prior to start ... ; WHILE developing gravity dimension computer, boot sequence should also be predefined by light i.e. green ... ;
...
|
|
|