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 > [PROGETTO] Videosorveglianza Thread Rating: 1 votes, 5.00 average.
Pages (10): « 1 2 3 [4] 5 6 7 8 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Renaulto
is fan of UTF-8

User info:
Registered: Aug 2002
Posts: 4064 (0.47 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 96 Days, 0:23:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by gerelio
Volevo chiedere ma i prototipi delle funzioni possiamo implementarle come vogliamo noi o come scrive il proff nelle tabelle.
Per capirci meglio nelle fuzioni è possibile passare delle strutture o per forza passargli solo char , string e int come nei suoi fogli ?
Rispondete vi prego non riesco ad andare avanti grazie


__________________
Tanenbaum is overrated.

11-09-2006 18:03
Click Here to See the Profile for Renaulto Click Here to See the Blog of Renaulto Click here to Send Renaulto a Private Message Find more posts by Renaulto Add Renaulto to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Petrik22
:the broser:

User info:
Registered: Jul 2003
Posts: 76 (0.01 al dì)
Location: Seregno
Corso: TICom
Anno: ultimo
Time Online: 1 Day, 5:39:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

cmq ragazzi il mio msn è petrik_broser@hotmail.com
chi ne ha voglia mi addi pure, almeno possiamo scambiarci consigli in tempo reale senza doversi fare 1 ora di treno (almeno per me...)!
ciaooo

__________________
lol

12-09-2006 09:50
Click Here to See the Profile for Petrik22 Click here to Send Petrik22 a Private Message Visit Petrik22's homepage! Find more posts by Petrik22 Add Petrik22 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
il.MaCs
.simpatizzante.

User info:
Registered: Dec 2003
Posts: 15 (0.00 al dì)
Location: Varese
Corso: InformatiKaZ
Anno: *ended*
Time Online: 1 Day, 20:04:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

...scusate la domanda forse idiota e banale... ma... io non ho ancora capito...come il valore dei nodi influenza la soluzione? Mi spiego meglio, scorrendo la struttura, come faccio a decidere se sorvegliare un nodo o meno? potrei scorrere un ipotetico albero fino alle foglie e poi risalire? ma poi, come tenere conto degli eventuali sottoalberi che influirebbero sulla soluzione? =)
Sob, non ci capisco nulla...son proprio negato ;)

Grazie a chiunque vorrà darmi una mano :)

ciao!

M

__________________
__________________________
FORZA INTER ALE'
NON MOLLARE PERCHE'
C'E' LA NORD CHE CANTA PER TE!
__________________________

12-09-2006 15:01
Click Here to See the Profile for il.MaCs Click here to Send il.MaCs a Private Message Find more posts by il.MaCs Add il.MaCs to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
full
.amico.

User info:
Registered: Sep 2004
Posts: 35 (0.00 al dì)
Location:
Corso: informatica
Anno: 3
Time Online: 9:26:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao ragazzi, stamattina ho parlato con il prof, anche a me era venuta in mente l'idea di prendere il valore più grande tra il padre e la somma dei figli, ma ovviamente non funziona in ogni caso, in quanto bisogna considerare che ci stanno altri nodi e non in tutti si possono mettere le telecamere, mi ha detto di non usare algoritmi greedy, ma piuttosto algoritmi ricorsivi che valutano nel complesso il risultato migliore, non bisogna guardare il padre e i figli ma piuttosto il sottoalbero a cui appartengono. non so come spiegarlo in modo differente..cmq una cosa è sicura, trattasi di albero k-ario come avevo previsto all'inizio, non è semplice questo progetto ma spero che da qualche parte ci sia un algoritmo che lo risolva..

buon lavoro.

12-09-2006 15:43
Click Here to See the Profile for full Click here to Send full a Private Message Find more posts by full Add full to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
black_mamba
.simpatizzante.

User info:
Registered: Jan 2004
Posts: 15 (0.00 al dì)
Location: milano
Corso: informatica
Anno: 4
Time Online: 12:43:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

quindi provare tutte le soluzioni possibili e prendere la migliore?

12-09-2006 15:54
Click Here to See the Profile for black_mamba Click here to Send black_mamba a Private Message Find more posts by black_mamba Add black_mamba to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
black_mamba
.simpatizzante.

User info:
Registered: Jan 2004
Posts: 15 (0.00 al dì)
Location: milano
Corso: informatica
Anno: 4
Time Online: 12:43:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

bisogna avere un caso base, per fare una ricorsione, quale potrebbe essere?

12-09-2006 18:46
Click Here to See the Profile for black_mamba Click here to Send black_mamba a Private Message Find more posts by black_mamba Add black_mamba to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ale82info
.grande:maestro.

User info:
Registered: Dec 2003
Posts: 2538 (0.31 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 17 Days, 13:20:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by black_mamba
bisogna avere un caso base, per fare una ricorsione, quale potrebbe essere?


albero composto dalla sola radice.

12-09-2006 19:51
Click Here to See the Profile for ale82info Click Here to See the Blog of ale82info Click here to Send ale82info a Private Message Find more posts by ale82info Add ale82info to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lfn
***La Femme Nikita***

User info:
Registered: Nov 2004
Posts: 171 (0.02 al dì)
Location: Milano
Corso: TICOM
Anno: 2° anno
Time Online: 1 Day, 12:50:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Red face

Originally posted by full
Ciao ragazzi, stamattina ho parlato con il prof, anche a me era venuta in mente l'idea di prendere il valore più grande tra il padre e la somma dei figli, ma ovviamente non funziona in ogni caso, in quanto bisogna considerare che ci stanno altri nodi e non in tutti si possono mettere le telecamere, mi ha detto di non usare algoritmi greedy, ma piuttosto algoritmi ricorsivi che valutano nel complesso il risultato migliore, non bisogna guardare il padre e i figli ma piuttosto il sottoalbero a cui appartengono. non so come spiegarlo in modo differente..cmq una cosa è sicura, trattasi di albero k-ario come avevo previsto all'inizio, non è semplice questo progetto ma spero che da qualche parte ci sia un algoritmo che lo risolva..

buon lavoro.

:shock: per una volta nella mia vita avevo ragione sin dall'inizio..
io sono ancora alle prese con le implementazioni delle strutture.. T_T
che casino sto albero k-ario..
lfn :cool:

__________________
an arrow from the sun

12-09-2006 21:20
Click Here to See the Profile for lfn Click here to Send lfn a Private Message Find more posts by lfn Add lfn to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Petrik22
:the broser:

User info:
Registered: Jul 2003
Posts: 76 (0.01 al dì)
Location: Seregno
Corso: TICom
Anno: ultimo
Time Online: 1 Day, 5:39:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

raga nessuno è giù domani al silab che magari ci si becca e ci scambiamo qualche idea?
io su certe cose brancolo nel buio...

__________________
lol

13-09-2006 15:01
Click Here to See the Profile for Petrik22 Click here to Send Petrik22 a Private Message Visit Petrik22's homepage! Find more posts by Petrik22 Add Petrik22 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ale82info
.grande:maestro.

User info:
Registered: Dec 2003
Posts: 2538 (0.31 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 17 Days, 13:20:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

una domanda....ma come fate la main?!?!?

cioè, il ciclio sarà qualcosa tipo:
while (c=getchar() != 'f') {......

giusto??

e come viene controllaoi il carattere \n ???

13-09-2006 17:06
Click Here to See the Profile for ale82info Click Here to See the Blog of ale82info Click here to Send ale82info a Private Message Find more posts by ale82info Add ale82info to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Renaulto
is fan of UTF-8

User info:
Registered: Aug 2002
Posts: 4064 (0.47 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 96 Days, 0:23:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Guarda qualche progetto già fatto nella sezione filez.

__________________
Tanenbaum is overrated.

13-09-2006 17:13
Click Here to See the Profile for Renaulto Click Here to See the Blog of Renaulto Click here to Send Renaulto a Private Message Find more posts by Renaulto Add Renaulto to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ale82info
.grande:maestro.

User info:
Registered: Dec 2003
Posts: 2538 (0.31 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 17 Days, 13:20:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

xkè nessuno scrive +? l'avete tutti finito o ci avete rinunciato?

15-09-2006 11:01
Click Here to See the Profile for ale82info Click Here to See the Blog of ale82info Click here to Send ale82info a Private Message Find more posts by ale82info Add ale82info to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
puntozip
.arcimaestro.

User info:
Registered: Jan 2003
Posts: 332 (0.04 al dì)
Location: milano
Corso: Ticom
Anno: 1
Time Online: 10 Days, 4:57:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io nella figura di esempio ho notato questa cosa, nn so se è un caso:
Prima di tutto in ogni nodo metto il totale del valore dei figli

Ogni nodo lo confronto con il valore totale dei figli e lo prendo se vale di più... poi passo a ciascun figlio uno alla volta e faccio lo stesso (prendendolo però solo se non ho già preso il padre).

La procedura è quindi ricorsiva quando arrivo ad una foglia torno all'ultimo nodo che avevo in sospeso

Non ho provato con altri esempi quindi non so se ha validità universale, però potrebbe valere la pena di tentare...

Ciao e buon lavoro

__________________
There are two ways of constructing a software design:
one way is to make it so simple that there are obviously no deficiencies;
the other way is to make it so complicated that there are no obvious deficiencies.
(C.A.R. Hoare)

15-09-2006 16:27
Click Here to See the Profile for puntozip Click here to Send puntozip a Private Message Find more posts by puntozip Add puntozip to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mjfan80
.consigliere.

User info:
Registered: Nov 2001
Posts: 140 (0.02 al dì)
Location: Vallecamonica (BRESCIA)
Corso: Informatica quinquennale
Anno: 5°? 6°? 7°? bho
Time Online: 19:22:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

puntozip
la procedura è scorretta
perchè prendendo decisini di quel tipo ad ogni nodo, se decidi di prenderlo, vincoli il padre a non essere preso

io ho sviluppato un algoritmo gready, che fa più o meno quello che hai scritto, ma per ogni nodo tengo memorizzati i casi migliori se ha la telecamera e il caso che non l'abbia

__________________
Heal The World
Just Because You Read It In A Magazine Or You See It On A Tv Scren Don't Make It Factual

15-09-2006 18:48
Click Here to See the Profile for mjfan80 Click here to Send mjfan80 a Private Message Visit mjfan80's homepage! Find more posts by mjfan80 Add mjfan80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ale82info
.grande:maestro.

User info:
Registered: Dec 2003
Posts: 2538 (0.31 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 17 Days, 13:20:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

@ puntozip: non può funzionare..fai delle prove su carta!

@ mjfan80: puoi dettagliare quello che hai fatto? se vuoi via pm così ci diamo consigli a vicenda! anche io ho avuto un'idea molto simile alla tua...

15-09-2006 19:06
Click Here to See the Profile for ale82info Click Here to See the Blog of ale82info Click here to Send ale82info a Private Message Find more posts by ale82info Add ale82info to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 08:17.    Post New Thread    Post A Reply
Pages (10): « 1 2 3 [4] 5 6 7 8 » ... Last »   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.146 seconds (68.00% PHP - 32.00% MySQL) con 23 query.