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 > Algoritmi e strutture dati > [Algoritmi] MergeSort
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
rafnet
.grande:maestro.

User info:
Registered: Apr 2002
Posts: 524 (0.06 al dì)
Location: milano
Corso: Informatica
Anno: 3° teorico
Time Online: 2 Days, 3:50:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Algoritmi MergeSort

Qualcuno mi può spiegare come si applica il mergesort sull' input

A= 7 5 10 6 9 ?

che dalle dispende non ci arrivo

__________________
La vita è una jungla!

04-04-2005 10:58
Click Here to See the Profile for rafnet Click here to Send rafnet a Private Message Find more posts by rafnet Add rafnet to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sirio
.illuminato.

User info:
Registered: Mar 2003
Posts: 187 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Terzo
Time Online: 2 Days, 17:32:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Se non ricordo male il merge si basa dul paradigma divide et impera, per cui divido in due l'array A, ad es. a1=7 5 e a2=10 6 9
divido a2 in a21=10 6 e a22=9.
Faccio gli scambi in a1 e a21, quindi avrò a1=5 7 e a21=6 10, alla fine mi trovo con: 5 7 6 10 9 a questo punto confronto ogni elem. con quello successivo cioè 5 è < 7 quindi ok, 7 non è < 6 per cui gli scambio, e così via.

Credo che sia questo il principio, purtroppo la mia memoria non è infallibile per cui prendi con la dovuta cautela ciò che ho scritto sopra.

04-04-2005 13:34
Click Here to See the Profile for sirio Click here to Send sirio a Private Message Find more posts by sirio Add sirio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Viry
dsy moderator

User info:
Registered: Oct 2002
Posts: 2429 (0.29 al dì)
Location: Milano
Corso: Ticom
Anno: primo
Time Online: 43 Days, 3:27:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

http://www.informatik.uni-stuttgart...merge_sort.html

__________________
When once you have tasted flight, you will walk the earth, forever more, with your eyes turned skyward. For there you have been, and there you long to return.

“Dovere, tempo, destino, tutto tende a separarci e, di fatto, ci separa. Ma il sentimento non conosce frontiere e mi unisce a te come se avessi sempre la mia mano sulla tua"

04-04-2005 14:43
Click Here to See the Profile for Viry Click here to Send Viry a Private Message Find more posts by Viry Add Viry to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
rafnet
.grande:maestro.

User info:
Registered: Apr 2002
Posts: 524 (0.06 al dì)
Location: milano
Corso: Informatica
Anno: 3° teorico
Time Online: 2 Days, 3:50:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie.
E' tutto chiaro.

__________________
La vita è una jungla!

04-04-2005 18:13
Click Here to See the Profile for rafnet Click here to Send rafnet a Private Message Find more posts by rafnet Add rafnet to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
faxmaister
.simpatizzante.

User info:
Registered: Jan 2005
Posts: 13 (0.00 al dì)
Location: Prov di Varese
Corso: Informatica
Anno: 2
Time Online: 12:32:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Un'altra pagina che spiega il funzionamento di merge sort, con tanto di esempietto interattivo!

http://www.iti.fh-flensburg.de/lang...erge/mergen.htm

24-07-2005 14:53
Click Here to See the Profile for faxmaister Click here to Send faxmaister a Private Message Visit faxmaister's homepage! Find more posts by faxmaister Add faxmaister to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 19:04.    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.064 seconds (59.62% PHP - 40.38% MySQL) con 26 query.