Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Architettura degli elaboratori e delle reti > Esame 16/07/2013 Codara, per vechhio ordinamento F$)
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
wiseupdoc
.novellino.

User info:
Registered: Jun 2009
Posts: 8 (0.00 al dì)
Location: figino serenza
Corso: informatica
Anno: secondo
Time Online: 8:45:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Question Esame 16/07/2013 Codara, per vechhio ordinamento F$)

Qualcuno potrebbe indicarmi la soluzione di questa procedura.

Ecco il testo completo:
Scrivere una procedura assembly SPC per il calcolo del numero di partizioni stabili di un ciclo. La procedura riceverà in ingresso la dimensione n>0 del ciclo, nel registro $a0 e restituirà il numero di partizioni stabili del ciclo di lunghezza n, nel registro $v0. La formula per il calcolo di tale valore è:

SPC (n)= 0….n-2(-1)^k Bell (n-k-1)

Esempio:

SPC(5)= Bell(4) - Bell(3) + Bell(2) - Bell(1)
SPC(6)= Bell(5) - Bell(4) + Bell(3) - Bell(2) + Bell(1)

Per calcolare il k-esimo numero di Bell si invochi la procedura esterna Bell che riceve in ingresso un intero k>0 nel registro $a0 e restituisce in $v0 il valore di Bell(k)

Grazie

19-07-2013 15:34
Click Here to See the Profile for wiseupdoc Click here to Send wiseupdoc a Private Message Find more posts by wiseupdoc Add wiseupdoc to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
wiseupdoc
.novellino.

User info:
Registered: Jun 2009
Posts: 8 (0.00 al dì)
Location: figino serenza
Corso: informatica
Anno: secondo
Time Online: 8:45:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ancora Nessuno???

01-08-2013 09:25
Click Here to See the Profile for wiseupdoc Click here to Send wiseupdoc a Private Message Find more posts by wiseupdoc Add wiseupdoc to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
exzR
.novellino.

User info:
Registered: Aug 2010
Posts: 2 (0.00 al dì)
Location: Milano
Corso: informatica
Anno: 2
Time Online: 1:50:03: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

me lo sono fatto mandare direttamente dal codara e risulta l'esame dell'appello di Luglio 2013 se non ricordo male...

SPC:
addi $sp, $sp, -20
sw $ra, 0($sp)
sw $s0, 4($sp)
sw $s1, 8($sp)
sw $s2, 12($sp)
sw $s3, 16($sp)
li $s0, 0 # contatore ciclo
addi $s1, $a0, -2
li $s2, 0 # somma parziale
li $s3, 1 # segno
ciclosomma:
bgt $s0, $s1, finesomma
sub $a0, $s1, $s0
addi $a0, $a0, 1
jal Bell
mul $t0, $s3, $v0
add $s2, $s2, $t0
sub $s3, $0, $s3
addi $s0, $s0, 1
j ciclosomma
finesomma:
move $v0, $s2
lw $ra, 0($sp)
lw $s0, 4($sp)
lw $s1, 8($sp)
lw $s2, 12($sp)
lw $s3, 16($sp)
addi $sp, $sp, 16
jr $ra

14-09-2013 09:13
Click Here to See the Profile for exzR Click here to Send exzR a Private Message Find more posts by exzR Add exzR to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
wiseupdoc
.novellino.

User info:
Registered: Jun 2009
Posts: 8 (0.00 al dì)
Location: figino serenza
Corso: informatica
Anno: secondo
Time Online: 8:45:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie mille....

16-09-2013 08:30
Click Here to See the Profile for wiseupdoc Click here to Send wiseupdoc a Private Message Find more posts by wiseupdoc Add wiseupdoc to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 12:09.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.025 seconds (89.62% PHP - 10.38% MySQL) con 27 query.