🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #434

problem w c

#434
From: lukrak
Date: Thu, 22 Jan 2004 21:24
35 lines
1801 bytes
Zapisz w postaci funkcji algorytm: dane s_ dwa zbiory A i B ( n-elementowy i
elementowy)

o elementach b�d�cych liczbami ca�kowitymi. Elementy tych zbior�w dane s� za
pomoc

_ dw�ch tablic uporz�dkowanych rosn� co. Wyznacz liczb� element�w nale��cych

do zbioru A \ B (r�nica zbior�w ).

{
int ilosc = 0;
for(i = 0; i < N; i++)
{
    bool found = false;
    for(j = 0; j < M; j++)
    {
        if(A[i] == B[j])
        {
            found = true;
            break;
        }
    }
    if(!found)
        ilosc++;
}

return ilosc;
}
 mam cos takiego i moje pytanie b�mi czy  wykona sie prawid�owo i jak
obliczy� do tego z�o�ono�� (czas wykonania algorytmu) oraz jak zbudowa�
prosty schamat blokowy.

pom�cie mi
odpiszcie na adres luk...@xl.wp.pl prosze to wa�ne
Technical Details
Message-ID: <bupf77$804$1@nemesis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "lukrak" <luk...@o2.pl>
Newsgroups: alt.pl.comp.lang.csharp,alt.pl.www.jezyki,pl.comp.lang.c
Subject: problem w c
Date: Thu, 22 Jan 2004 22:24:21 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 38
Message-ID: <bupf77$804$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: pb80.ciechanow.cvx.ppp.tpnet.pl
X-Trace: nemesis.news.tpi.pl 1074806884 8196 213.77.203.80 (22 Jan 2004 21:28:04 GMT)
X-Complaints-To: use...@tpi.pl
NNTP-Posting-Date: Thu, 22 Jan 2004 21:28:04 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit