» Willkommen auf Offtopic «

JensBee
aus Jever
offline



OC God
22 Jahre dabei !

Intel Core i5


wer träumt davon nicht??? :lolaway:


Jeder darf wissen was er wissen will! Es sei denn, er will nicht wissen was er wissen will! Dann kann er auch net wissen was er wissen will und somit weiss er auch nichts!

Beiträge gesamt: 4157 | Durchschnitt: 0 Postings pro Tag
Registrierung: Mai 2001 | Dabei seit: 8388 Tagen | Erstellt: 16:40 am 20. Nov. 2002
darkcrawler
aus cottbus
offline



Real OC or Post God !
22 Jahre dabei !

Intel Pentium Dual Core
1600 MHz @ 3206 MHz mit 1.316 Volt


späte einsicht:lol:

Beiträge gesamt: 12262 | Durchschnitt: 1 Postings pro Tag
Registrierung: Mai 2001 | Dabei seit: 8375 Tagen | Erstellt: 16:41 am 20. Nov. 2002
NWD
aus Gronau (Leine)
offline



Real OC or Post God !
22 Jahre dabei !

AMD Ryzen 7
3800 MHz @ 4600 MHz
60°C mit 1.325 Volt


wie jetzt ?


Work like you don´t need the money    Love like you´ve never been hurt         Dance like nobody´s watching             Sing like nobody´s listening
But Live as if you will die today

Beiträge gesamt: 17781 | Durchschnitt: 2 Postings pro Tag
Registrierung: Mai 2001 | Dabei seit: 8377 Tagen | Erstellt: 16:42 am 20. Nov. 2002
JensBee
aus Jever
offline



OC God
22 Jahre dabei !

Intel Core i5


:confused:


Jeder darf wissen was er wissen will! Es sei denn, er will nicht wissen was er wissen will! Dann kann er auch net wissen was er wissen will und somit weiss er auch nichts!

Beiträge gesamt: 4157 | Durchschnitt: 0 Postings pro Tag
Registrierung: Mai 2001 | Dabei seit: 8388 Tagen | Erstellt: 16:44 am 20. Nov. 2002
darkcrawler
aus cottbus
offline



Real OC or Post God !
22 Jahre dabei !

Intel Pentium Dual Core
1600 MHz @ 3206 MHz mit 1.316 Volt


meinte @ratber:lolaway:

Beiträge gesamt: 12262 | Durchschnitt: 1 Postings pro Tag
Registrierung: Mai 2001 | Dabei seit: 8375 Tagen | Erstellt: 17:02 am 20. Nov. 2002
JensBee
aus Jever
offline



OC God
22 Jahre dabei !

Intel Core i5


tststststststs :hell:


Jeder darf wissen was er wissen will! Es sei denn, er will nicht wissen was er wissen will! Dann kann er auch net wissen was er wissen will und somit weiss er auch nichts!

Beiträge gesamt: 4157 | Durchschnitt: 0 Postings pro Tag
Registrierung: Mai 2001 | Dabei seit: 8388 Tagen | Erstellt: 17:10 am 20. Nov. 2002
Zerberus
aus LA
offline



OC God
22 Jahre dabei !

Intel Pentium IV
1400 MHz @ 1400 MHz


:lolaway:


Denkt daran:
Das Leben bleibt spannend, wenn man nicht alles wissen kann!!!

Beiträge gesamt: 2552 | Durchschnitt: 0 Postings pro Tag
Registrierung: Dez. 2001 | Dabei seit: 8163 Tagen | Erstellt: 17:19 am 20. Nov. 2002
slipknotter
aus Korbach/Hessen
offline



OC Profi
21 Jahre dabei !

AMD Duron
1000 MHz mit 1.500 Volt


ROFL LOOOLL WAHAHAHHA SCHMEISSWEG :lolaway: :lolaway: :lolaway:

Wie kann man nur so krank sein??? Nackt vor der Haustür liegen, etc.
:lolaway:






Ich kann mich da allerdings nur anschliessen! :biglol:


"Seid ihr bereit für Frieden und Sozialismus?"
-"Immer bereit!!"

Beiträge gesamt: 744 | Durchschnitt: 0 Postings pro Tag
Registrierung: Juli 2002 | Dabei seit: 7951 Tagen | Erstellt: 17:26 am 20. Nov. 2002
DEADTHC
aus Wernberg
offline



Real OC or Post God !
22 Jahre dabei !

Intel Core i5


Code
Consider an array a[] of type unsigned int. The length of the array is given by a parameter n, which is read at the beginning of the program. Initialize the array according to the following rule: a[0] == 0; a[i] = (a[i - 1] + x) % n, for all i > 0. Algebra tells us that whenever n and x are relatively prime, that is gcd(x, n) == 1, the whole pattern of a[] values a permutation of the numbers 0, ..., n. That is, all numbers occur exactly once. Taking x a prime number, this is guaranteed to hold for all n which are not a multiple of x.
The task is to verify this property for various n and x and to measure the time consumption. This is done by using a second unsigned integer array b[], which is used for counting the frequencies of the numbers in a[]. It is initialized at zero and in a final pass the maximum of all values in b[] is determined and printed.

Times can be measured with the following procedure:

     long dclock() {
       /* Returns the time in miliseconds */
       struct timeval  tp;
       struct timezone tzp;
       gettimeofday(&tp, &tzp);
       return 1000 * (tp.tv_sec % 1000000) + tp.tv_usec / 1000; }
   
This is not the most scientific way of measuring times, but it is simple and works quite well. In order to be able to use this routine it is necessary to include the system library "sys/time.h", which is done in the same way as the inclusion of "stdio.h".
For n you must test n = 2^k, for all k >= 12 as far as the computer allows you to solve the problem in less than 1 minute. For x you must test x = 1, 2, 4, 11, 19, 1007, 99991. The time measurement should only reflect the time for counting the frequencies of the numbers in a[], not the initialization or finding the maximum. To get stable measurements, the experiments should be repeated until the sum of the measured times exceeds 1000 ms (and then of course you must divide by the number of experiments to get the average time per experiment). Plot the resulting average time consumptions as a function of n using a doubly logarithmic scale (that is, both along the x-axis and along the y-axis the scaling is so that each factor two is one unit distance) connecting the points belonging to the same x value. Consider the developments and the differences and explain them.


:lolaway:

soll die aufgabe für nen kumpel machen der studiert informatik :crazy: jetzt gehts aber los...

PS: der kunde hat 3317.1kbps :cry:

(Geändert von DEADTHC um 17:37 am Nov. 20, 2002)

Beiträge gesamt: 10047 | Durchschnitt: 1 Postings pro Tag
Registrierung: Mai 2001 | Dabei seit: 8366 Tagen | Erstellt: 17:30 am 20. Nov. 2002
Ratber
offline


Real OC or Post God !
22 Jahre dabei !


Yo,das hatte ich für ne Woche auch (4096/768) obwohl ich nur standard DSL bezahle.

Leider isses seit gestern wieder vorbei.

Offensichtlich hat man den Fehler bemerkt

Beiträge gesamt: 41451 | Durchschnitt: 5 Postings pro Tag
Registrierung: Mai 2001 | Dabei seit: 8371 Tagen | Erstellt: 17:42 am 20. Nov. 2002