Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 07:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Permutationsalgorithmus

Discussion on Permutationsalgorithmus within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2008
Posts: 7
Received Thanks: 15
-
pr0f4n is offline  
Thanks
1 User
Old 05/28/2008, 12:09   #2
 
elite*gold: 20
Join Date: Sep 2006
Posts: 1,100
Received Thanks: 184
Ich kann dem Programm Fluss nicht ganz folgen, liegt wohl daran das ich nicht wirklich asm programmieren kann ^^
Und darf man fragen wieso du einen Solchen Algorithmus in ASM schreibst, bringt das im Vergleich zu c++ Laufzeit Vorteile?
Wenn ich das richtig sehe machst du ein paar Veränderungen vergleichst das dann mit irgendwas und machst ne XOR operation drauf, sieht schon ziemlich effektiv aus, nur verstehe ich aufgrund mangelhafter ASM Kentnisse etwa die Hälfte der Befehle xD.
Schreibs mal in CPP dann kann ich dir vieleicht genauer sagen ob der Permutations Algorithmus gut ist .
Bot_interesierter is offline  
Old 05/28/2008, 15:15   #3
 
elite*gold: 20
Join Date: Sep 2006
Posts: 1,100
Received Thanks: 184
Mir fällt was auf...
XOR mit zwei gleichen werten gibt 0 ^.^
Bot_interesierter is offline  
Old 05/28/2008, 16:40   #4
 
mr.rattlz's Avatar
 
elite*gold: 0
Join Date: Aug 2005
Posts: 896
Received Thanks: 334
Quote:
Originally Posted by Bot_interesierter View Post
Mir fällt was auf...
XOR mit zwei gleichen werten gibt 0 ^.^
Herzlich willkommen bei dem unheimlich interessanten Thema "boolesche Algebra".
Du kannst XOR aus AND, NOT und OR zusammensetzen:
x XOR y = (x AND NOT y) OR (NOT x AND y)

Ganz elementar kannst du es sogar nur aus NAND bauen
x XOR y = (x NAND (y NAND y)) NAND ((x NAND x) NAND y)
mr.rattlz is offline  
Reply




All times are GMT +2. The time now is 07:49.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.