{"id":36632,"date":"2019-10-31T22:12:47","date_gmt":"2019-10-31T19:12:47","guid":{"rendered":"https:\/\/prohoster.info\/blog\/globaly-mechi-kladentsy-dlya-hraneniya-dannyh-razrezhennye-massivy-chast-3\/"},"modified":"2019-10-31T22:12:47","modified_gmt":"2019-10-31T19:12:47","slug":"globaly-mechi-kladentsy-dlya-hraneniya-dannyh-razrezhennye-massivy-chast-3","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/globaly-mechi-kladentsy-dlya-hraneniya-dannyh-razrezhennye-massivy-chast-3","title":{"rendered":"Global\u00ebt \u2014 shpata-kthena p\u00ebr ruajtjen e t\u00eb dh\u00ebnave. Sfondet e shp\u00ebrndara. Pjesa 3","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"Global\u00ebt \u2014 shpata-kthena p\u00ebr ruajtjen e t\u00eb dh\u00ebnave. Sfondet e shp\u00ebrndara. Pjesa 3\" src=\"\/wp-content\/uploads\/2019\/07\/ac6eefbfb9d7cc28c3f2ca85c7d1adb2.jpg\" style=\"display:block;margin: 0 auto;\" \/>N\u00eb pjes\u00ebt e m\u00ebparshme (<noindex><a rel=\"nofollow\" href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/263791\/\">1<\/a><\/noindex>, <noindex><a rel=\"nofollow\" href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/264173\/\">2<\/a><\/noindex>) fol\u00ebm p\u00ebr global\u00ebt si pem\u00eb, n\u00eb k\u00ebt\u00eb pjes\u00eb do t\u00eb shqyrtojm\u00eb global\u00ebt si masa t\u00eb holluar.<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A0%D0%B0%D0%B7%D1%80%D0%B5%D0%B6%D1%91%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BC%D0%B0%D1%81%D1%81%D0%B8%D0%B2\">Masa e holluar<\/a><\/noindex> \u00ebsht\u00eb nj\u00eb lloj mase, ku shumica e vlerave merr t\u00eb nj\u00ebjt\u00ebn vler\u00eb.<\/p>\n<p>N\u00eb praktik\u00eb, shpesh hasen masa kaq t\u00eb m\u00ebdha t\u00eb holluara, saq\u00eb nuk ka asnj\u00eb kuptim t\u00eb z\u00ebn\u00eb memorie me elemente t\u00eb nj\u00ebjta. Prandaj, ka kuptim q\u00eb masat e holluara t\u00eb realizohen n\u00eb m\u00ebnyr\u00eb q\u00eb memorja t\u00eb mos harxhohet p\u00ebr ruajtjen e vlerave t\u00eb nj\u00ebjta.<br \/>\nN\u00eb disa gjuh\u00eb programimi, masat e holluara jan\u00eb pjes\u00eb e gjuh\u00ebs vet\u00eb, <noindex><a rel=\"nofollow\" href=\"http:\/\/www.jsoftware.com\/help\/dictionary\/d211.htm\">p\u00ebr shembull n\u00eb J<\/a><\/noindex>, <noindex><a rel=\"nofollow\" href=\"http:\/\/www.mathworks.com\/help\/matlab\/ref\/sparse.html\">MATLAB<\/a><\/noindex>. N\u00eb gjuh\u00eb t\u00eb tjera programimi ka biblioteka speciale q\u00eb lejojn\u00eb realizimin e tyre. P\u00ebr C++ \u2014 <noindex><a rel=\"nofollow\" href=\"http:\/\/eigen.tuxfamily.org\/dox-devel\/GettingStarted.html\">Eigen<\/a><\/noindex> etj. <\/p>\n<p>Global\u00ebt jan\u00eb kandidat\u00eb t\u00eb mir\u00eb p\u00ebr realizimin e masave t\u00eb holluara, sepse:<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<ol>\n<li>Ruajn\u00eb vlerat vet\u00ebm t\u00eb nyjeve t\u00eb caktuara dhe nuk ruajn\u00eb vlerat e paregjistruara;<\/li>\n<li>Nd\u00ebrfaqja e qasjes n\u00eb vler\u00ebn e nyjes \u00ebsht\u00eb jasht\u00ebzakonisht e ngjashme me m\u00ebnyr\u00ebn se si \u00ebsht\u00eb realizuar qasja n\u00eb elementin e nj\u00eb mase shum\u00ebdimensionale n\u00eb shum\u00eb gjuh\u00eb programimi.\n<pre><code class=\"bash\">Set ^a(1, 2, 3)=5\nWrite ^a(1, 2, 3)<\/code><\/pre>\n<p>\n<\/li>\n<li>Globali \u00ebsht\u00eb nj\u00eb struktur\u00eb mjaft e ul\u00ebt p\u00ebr ruajtjen e t\u00eb dh\u00ebnave, prandaj ka karakteristika t\u00eb shk\u00eblqyera shpejt\u00ebsie (nga qindra mij\u00ebra deri n\u00eb dhjet\u00ebra miliona transaksione n\u00eb sekond\u00eb, n\u00eb var\u00ebsi t\u00eb harduerit, shih. <noindex><a rel=\"nofollow\" href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/257501\/\">1<\/a><\/noindex>)<\/li>\n<\/ol>\n<p><\/p>\n<blockquote><p>Duke qen\u00eb se globali \u00ebsht\u00eb nj\u00eb struktur\u00eb persistente, ka kuptim t\u00eb b\u00ebsh masa t\u00eb holluara mbi to kur dihet paraprakisht se volumi i memories operuese do t\u00eb jet\u00eb i pamjaftuesh\u00ebm.<\/p><\/blockquote>\n<p>\nNj\u00eb nga ve\u00e7orit\u00eb e realizimeve t\u00eb masave t\u00eb holluara \u00ebsht\u00eb kthimi i nj\u00eb vler\u00eb p\u00ebr default n\u00ebse adresa e caktuar \u00ebsht\u00eb e paregjistruar.<\/p>\n<p>Kjo mund t\u00eb realizohet duke p\u00ebrdorur funksionin <noindex><a rel=\"nofollow\" href=\"http:\/\/docs.intersystems.com\/cache20152\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_fget\">$GET<\/a><\/noindex> n\u00eb COS. N\u00eb k\u00ebt\u00eb shembull, shqyrtohet nj\u00eb mas\u00eb tridimensionale.<\/p>\n<pre><code>SET a = $GET(^a(x,y,z), defValue)<\/code><\/pre>\n<p>\nCilat jan\u00eb detyrat p\u00ebr t\u00eb cilat k\u00ebrkohen masat e holluara dhe si mund t'i ndihmojn\u00eb global\u00ebt?<\/p>\n<h2>Matrica e fqinj\u00ebsis\u00eb (lidshm\u00ebris\u00eb)<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9C%D0%B0%D1%82%D1%80%D0%B8%D1%86%D0%B0_%D1%81%D0%BC%D0%B5%D0%B6%D0%BD%D0%BE%D1%81%D1%82%D0%B8\">K\u00ebto matrica<\/a><\/noindex> p\u00ebrdoren p\u00ebr t\u00eb paraqitur grafet:<\/p>\n<p><img decoding=\"async\" alt=\"Global\u00ebt \u2014 shpata-kthena p\u00ebr ruajtjen e t\u00eb dh\u00ebnave. Sfondet e shp\u00ebrndara. Pjesa 3\" src=\"\/wp-content\/uploads\/2019\/07\/a580c451610bcacbef154c161ef63939.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nE qart\u00eb \u00ebsht\u00eb se sa m\u00eb i madh t\u00eb jet\u00eb grafi, aq m\u00eb shum\u00eb zero do t\u00eb ket\u00eb n\u00eb matric\u00eb. N\u00ebse, p\u00ebr shembull, marrim nj\u00eb graf t\u00eb nj\u00eb rrjeti social dhe e paraqesim at\u00eb si nj\u00eb matric\u00eb t\u00eb till\u00eb, do t\u00eb p\u00ebrb\u00ebhet pothuajse krejt\u00ebsisht nga zero, dmth do t\u00eb jet\u00eb nj\u00eb mas\u00eb e holluar.<\/p>\n<pre><code class=\"bash\">Set ^m(id1, id2) = 1 \nSet ^m(id1, id3) = 1 \nSet ^m(id1, id4) = 1 \nSet ^m(id1) = 3 \nSet ^m(id2, id4) = 1 \nSet ^m(id2, id5) = 1 \nSet ^m(id2) = 2\n....\n<\/code><\/pre>\n<p>\nN\u00eb k\u00ebt\u00eb shembull, ne ruajm\u00eb n\u00eb globalin <strong>^m<\/strong> matrica e lidhjes, si dhe numri i skajeve p\u00ebr secil\u00ebn nyj\u00eb (kush \u00ebsht\u00eb miq me k\u00eb, dhe numri i miqve).<\/p>\n<p>N\u00ebse numri i elementeve n\u00eb grafik nuk kalon 29 milion\u00eb (ky num\u00ebr merret si produkti 8 * <noindex><a rel=\"nofollow\" href=\"http:\/\/docs.intersystems.com\/cache201512\/csp\/docbook\/DocBook.UI.Page.cls?KEY=GORIENT_appx_limits_long_string\">masa maksimale e vargut<\/a><\/noindex>), at\u00ebher\u00eb ka nj\u00eb m\u00ebnyr\u00eb edhe m\u00eb ekonomike p\u00ebr t\u00eb ruajtur k\u00ebto matrica \u2014 vargje bitore, pasi n\u00eb realizimin e tyre optimizohen n\u00eb m\u00ebnyr\u00eb speciale boshll\u00ebqet e m\u00ebdha.<\/p>\n<p>Manipulimet me vargjet bitore kryhen nga funksioni <noindex><a rel=\"nofollow\" href=\"http:\/\/docs.intersystems.com\/cache20152\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_fbit\">$BIT<\/a><\/noindex>. <\/p>\n<pre><code class=\"bash\">; vendosja e bitit\nSET $BIT(rowID, positionID) = 1\n; marrja e bitit\nWrite $BIT(rowID, positionID)\n<\/code><\/pre>\n<p><\/p>\n<h2>Tabela e kalimeve t\u00eb automatit p\u00ebrfundimtar<\/h2>\n<p>\nPasi grafi i kalimeve t\u00eb automatit p\u00ebrfundimtar \u00ebsht\u00eb nj\u00eb grafik i zakonsh\u00ebm, tabela e kalimeve t\u00eb automatit p\u00ebrfundimtar \u00ebsht\u00eb po ajo matrica e af\u00ebrsis\u00eb, p\u00ebr t\u00eb cil\u00ebn u fol m\u00eb sip\u00ebr.<\/p>\n<h2>Automatet qelizore<\/h2>\n<p>\n<img decoding=\"async\" alt=\"Global\u00ebt \u2014 shpata-kthena p\u00ebr ruajtjen e t\u00eb dh\u00ebnave. Sfondet e shp\u00ebrndara. Pjesa 3\" src=\"\/wp-content\/uploads\/2019\/07\/b9fedb51cd1c8fced79ca221a925349c.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nAutomati qelizor m\u00eb i njohur \u00ebsht\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%96%D0%B8%D0%B7%D0%BD%D1%8C_(%D0%B8%D0%B3%D1%80%D0%B0)\">loja \"Jeta\"<\/a><\/noindex>, e cila p\u00ebr shkak t\u00eb rregullave t\u00eb saj (kur nj\u00eb qeliz\u00eb ka shum\u00eb fqinj\u00eb \u2014 ajo vdes) paraqet nj\u00eb mas\u00eb t\u00eb shkurtruar.<\/p>\n<p>Stephen Wolfram, mendon se automatet qelizore jan\u00eb nj\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/ru.wikipedia.org\/wiki\/A_New_Kind_of_Science\">fush\u00eb e re shkencore<\/a><\/noindex>. N\u00eb vitin 2002 publikon librin 1280-faqesh \"Nj\u00eb Lloj i Ri Shkence\", ku argumenton gjer\u00ebsisht se arritjet n\u00eb fush\u00ebn e automatheve qelizore nuk jan\u00eb t\u00eb izoluara, por t\u00eb q\u00ebndrueshme dhe p\u00ebrb\u00ebjn\u00eb nj\u00eb r\u00ebnd\u00ebsi t\u00eb madhe p\u00ebr t\u00eb gjitha fushat e shkenc\u00ebs.<\/p>\n<p>\u00cbsht\u00eb provuar se \u00e7do algoritem i realizuesh\u00ebm n\u00eb kompjuter mund t\u00eb realizohet p\u00ebrmes automatit qelizor. Automatet qelizore p\u00ebrdoren p\u00ebr modelimin e ambienteve dhe sistemeve dinamike, p\u00ebr zgjidhjen e problemeve algoritmike dhe p\u00ebr q\u00ebllime t\u00eb tjera.<\/p>\n<p>N\u00ebse kemi nj\u00eb fush\u00eb t\u00eb madhe dhe na nevojitet t\u00eb regjistrojm\u00eb t\u00eb gjitha gjendjet nd\u00ebrmjet\u00ebse t\u00eb automatit qelizor, \u00ebsht\u00eb shum\u00eb e arsyeshme t\u00eb p\u00ebrdorim globale.<\/p>\n<h2>Kartografia<\/h2>\n<p>\nE para q\u00eb m\u00eb vjen n\u00eb mendje, kur flitet p\u00ebr p\u00ebrdorimin e masave t\u00eb shkurtra \u2014 jan\u00eb problemet kartografike.<\/p>\n<p>Si zakonisht, mbi hartat ka shum\u00eb hap\u00ebsir\u00eb t\u00eb zbraz\u00ebt. N\u00ebse harta paraqitet si pikse t\u00eb m\u00ebdha, at\u00ebher\u00eb 71% e pikseve t\u00eb Tok\u00ebs do t\u00eb ishte e z\u00ebn\u00eb nga oqeanet. Nj\u00eb mas\u00eb e shkurtruar. Dhe n\u00ebse sh\u00ebnohen vet\u00ebm nd\u00ebrtimet njer\u00ebzore, hap\u00ebsira e zbraz\u00ebt do t\u00eb kalonte mbi 95%.<\/p>\n<p>Sigurisht, askush nuk i ruan hartat si masa rastere, por p\u00ebrdoret p\u00ebrfaq\u00ebsimi vektorik.<br \/>\nPor \u00e7far\u00eb p\u00ebrfaq\u00ebsojn\u00eb hartat vektorike? Ato jan\u00eb nj\u00eb korniz\u00eb e cila p\u00ebrb\u00ebhet nga pika, polilinjat dhe poliagonet.<br \/>\nN\u00eb thelb, \u00ebsht\u00eb nj\u00eb baz\u00eb t\u00eb dh\u00ebnash t\u00eb pikave dhe lidhjeve midis tyre.<\/p>\n<p>Nj\u00eb nga detyrat m\u00eb ambicioze t\u00eb hartimit \u00ebsht\u00eb misioni p\u00ebr t\u00eb hartuar galaktik\u00ebn ton\u00eb me teleskopin Gaia. Figurativisht, galaktika jon\u00eb, ashtu si e gjith\u00eb universi, \u00ebsht\u00eb nj\u00eb grumbull i holluar: hap\u00ebsira t\u00eb m\u00ebdha bosh, n\u00eb t\u00eb cilat ka pika t\u00eb rralla t\u00eb vogla - yje. Hap\u00ebsira bosh \u00ebsht\u00eb 99,999999\u2026%. P\u00ebr ruajtjen e hart\u00ebs s\u00eb galaktik\u00ebs ton\u00eb, \u00ebsht\u00eb zgjedhur nj\u00eb baz\u00eb t\u00eb dh\u00ebnash n\u00eb globet - Cach\u00e9.<\/p>\n<p>Nuk e di struktur\u00ebn e sakt\u00eb t\u00eb globals n\u00eb k\u00ebt\u00eb projekt, mund t\u00eb supozoj se \u00ebsht\u00eb di\u00e7ka e ngjashme me:<\/p>\n<pre><code class=\"bash\">Set ^galaxy(b, l, d) = 1; Numri i yllit sipas katalogut, n\u00ebse ekziston\nSet ^galaxy(b, l, d, \"name\") = \"Dielli\"\nSet ^galaxy(b, l, d, \"type\") = \"normal\"; variante blackhole, quazar, red_dwarf etj.\nSet ^galaxy(b, l, d, \"weight\") = 14E50\nSet ^galaxy(b, l, d, \"planetes\") = 7\nSet ^galaxy(b, l, d, \"planetes\", 1) = \"Merkuri\"\nSet ^galaxy(b, l, d, \"planetes\", 1, weight) = 1E20\n...\n<\/code><\/pre>\n<p>\n<i>Ku b, l, d jan\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/ru.wiki2.org\/wiki\/Galakteskaya_sistema_koordinat\">koordinatat galaktike gjer\u00ebsi, gjat\u00ebsi<\/a><\/noindex> dhe distanca nga Dielli.<\/i><\/p>\n<p>Struktura fleksibile e globals lejon ruajtjen e \u00e7do karakteristike t\u00eb nevojshme p\u00ebr yjet dhe planetet, pasi bazat globale jan\u00eb pa skem\u00eb (scheme-less).<\/p>\n<p>P\u00ebr ruajtjen e hart\u00ebs s\u00eb universin ton, Cach\u00e9 u zgjodh jo vet\u00ebm p\u00ebr fleksibilitetin, por edhe p\u00ebr aft\u00ebsin\u00eb p\u00ebr t\u00eb ruajtur me shpejt\u00ebsi flukse t\u00eb dh\u00ebnash, duke krijuar gjithashtu globals indekse p\u00ebr k\u00ebrkime t\u00eb shpejta.<\/p>\n<p>N\u00ebse kthehemi te Toka, projekti i hartografis\u00eb u krijua n\u00eb globals <noindex><a rel=\"nofollow\" href=\"http:\/\/wiki.openstreetmap.org\/wiki\/Xapi\">OpenStreetMap XAPI<\/a><\/noindex> dhe fork OpenStreetMap - <noindex><a rel=\"nofollow\" href=\"http:\/\/www.fosm.org\/\">FOSM<\/a><\/noindex>.<\/p>\n<p>S\u00eb fundmi n\u00eb <noindex><a rel=\"nofollow\" href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/267459\/\">hackathonin Cach\u00e9<\/a><\/noindex> u realizuan indekse gjeospa\u00e7iale <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/intersystems-ru\/spatialindex\">Gjeospa\u00e7ial<\/a><\/noindex>. Po presim detaje nga autor\u00ebt e artikullit p\u00ebr implementimin.<\/p>\n<h3>Implementimi i indekseve hap\u00ebsinore n\u00eb global n\u00eb OpenStreetMap XAPI<\/h3>\n<p>\nImazhet jan\u00eb marr\u00eb nga <noindex><a rel=\"nofollow\" href=\"http:\/\/www.slideshare.net\/george.james\/fosdem-2010-gtm-and-openstreetmap\">k\u00ebt\u00eb prezantim<\/a><\/noindex>.<\/p>\n<p>T\u00eb gjith\u00eb globi i Tok\u00ebs ndahet n\u00eb katror\u00eb, pastaj n\u00eb katror\u00eb m\u00eb t\u00eb vegj\u00ebl, dhe k\u00ebshtu me radh\u00eb. N\u00eb thelb, ne krijojm\u00eb nj\u00eb struktur\u00eb hierarkike p\u00ebr ruajtjen e t\u00eb cilave jan\u00eb krijuar globals.<\/p>\n<p><img decoding=\"async\" alt=\"Global\u00ebt \u2014 shpata-kthena p\u00ebr ruajtjen e t\u00eb dh\u00ebnave. Sfondet e shp\u00ebrndara. Pjesa 3\" src=\"\/wp-content\/uploads\/2019\/07\/239c54c201b8013f1897ecf1ccadcc9c.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nN\u00eb \u00e7do moment mund t\u00eb k\u00ebrkojm\u00eb pothuajse me shpejt\u00ebsi t\u00eb menj\u00ebhershme katrorin e nevojsh\u00ebm ose ta pastrrojm\u00eb at\u00eb, nd\u00ebrsa t\u00eb gjitha katror\u00ebt e vegj\u00ebl gjithashtu do t\u00eb kthehen ose pastrohen.<\/p>\n<p>Nj\u00eb skem\u00eb t\u00eb till\u00eb n\u00eb globals mund t\u00eb realizohet n\u00eb disa m\u00ebnyra.<\/p>\n<p>Opsioni 1:<\/p>\n<pre><code class=\"bash\">Set ^m(a, b, a, c, d, a, b,c, d, a, b, a, c, d, a, b,c, d, a, 1) = idPikaE par\u00eb\nSet ^m(a, b, a, c, d, a, b,c, d, a, b, a, c, d, a, b,c, d, a, 2) = idPikaE dyt\u00eb\n...<\/code><\/pre>\n<p>\nOpsioni 2:<\/p>\n<pre><code class=\"bash\">Set ^m('abacdabcdabacdabcda', 1) = idPikaE par\u00eb\nSet ^m('abacdabcdabacdabcda', 2) = idPikaE dyt\u00eb\n...<\/code><\/pre>\n<p>\nN\u00eb t\u00eb dyja rastet, nuk \u00ebsht\u00eb e v\u00ebshtir\u00eb t\u00eb k\u00ebrkosh piket q\u00eb ndodhen n\u00eb katrorin e \u00e7do niveli n\u00eb COS\/M. Do t\u00eb jet\u00eb pak m\u00eb e leht\u00eb t\u00eb pastrosh copat katrore t\u00eb hap\u00ebsir\u00ebs \u00e7do niveli n\u00eb variantin e par\u00eb, por kjo \u00ebsht\u00eb e rrall\u00eb e nevojshme.<\/p>\n<p>Shembulli i nj\u00eb katrori t\u00eb nivelit t\u00eb ul\u00ebt:<\/p>\n<p><img decoding=\"async\" alt=\"Global\u00ebt \u2014 shpata-kthena p\u00ebr ruajtjen e t\u00eb dh\u00ebnave. Sfondet e shp\u00ebrndara. Pjesa 3\" src=\"\/wp-content\/uploads\/2019\/07\/1fba7eb9253c6af9206cb168c6d43f2a.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nJa disa globale nga projekti XAPI: paraqitja e indeksit n\u00eb globale:<\/p>\n<p><img decoding=\"async\" alt=\"Global\u00ebt \u2014 shpata-kthena p\u00ebr ruajtjen e t\u00eb dh\u00ebnave. Sfondet e shp\u00ebrndara. Pjesa 3\" src=\"\/wp-content\/uploads\/2019\/07\/3a80dd4c3fb23d0f2d3094703966f74b.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nGlobal <strong>^way<\/strong> p\u00ebrdoret p\u00ebr ruajtjen e pikave <noindex><a rel=\"nofollow\" href=\"https:\/\/en.wikipedia.org\/wiki\/Polygonal_chain\">polilinjeve<\/a><\/noindex> (rrug\u00ebve, lumenjve t\u00eb vegj\u00ebl etj.) dhe poligoneve (zona t\u00eb mbyllura: nd\u00ebrtesa, pyje etj.).<\/p>\n<h2>Klasifikimi i p\u00ebraf\u00ebrt i p\u00ebrdorimit t\u00eb masave t\u00eb holl\u00eb n\u00eb globale.<\/h2>\n<p><\/p>\n<ol>\n<li>Ne ruajm\u00eb koordinatat e disa objekteve dhe gjendjet e tyre (hartimi, automatik\u00ebt celular\u00eb).<\/li>\n<li>Ne ruajm\u00eb matrica t\u00eb holl\u00eb.<\/li>\n<\/ol>\n<p>\nP\u00ebr rastin 2) kur k\u00ebrkohet nj\u00eb koordinat\u00eb e caktuar, ku elementit nuk i \u00ebsht\u00eb caktuar nj\u00eb vler\u00eb, ne duhet t\u00eb marrim vler\u00ebn standarde t\u00eb elementit t\u00eb mas\u00ebs s\u00eb holl\u00eb.<\/p>\n<h2>Bonuset q\u00eb marrim kur ruajm\u00eb matrica shum\u00ebdimensionale n\u00eb globale.<\/h2>\n<p>\n<b>Fshirje dhe\/ose zgjedhje e shpejt\u00eb e copave t\u00eb hap\u00ebsir\u00ebs, shum\u00ebfish i rreshtave, planeve, kub\u00ebve etj.<\/b> P\u00ebr rastet kur p\u00ebrdoren indekset e numrave t\u00eb plot\u00eb, mund t\u00eb jet\u00eb e dobishme mund\u00ebsia e fshirjes dhe\/ose zgjedhjes s\u00eb shpejt\u00eb t\u00eb copave t\u00eb hap\u00ebsir\u00ebs, shum\u00ebfish i rreshtave, planeve, kub\u00ebve etj.<\/p>\n<p>Me komand\u00ebn <noindex><a rel=\"nofollow\" href=\"http:\/\/docs.intersystems.com\/cache20152\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_ckill\">Kill<\/a><\/noindex> ne mund t\u00eb fshijm\u00eb si nj\u00eb element t\u00eb ve\u00e7ant\u00eb, ashtu edhe nj\u00eb rresht, madje edhe nj\u00eb t\u00ebr\u00eb plan. Fal\u00eb pronave t\u00eb globaleve, kjo ndodh shum\u00eb shpejt \u2014 mij\u00ebra her\u00eb m\u00eb shpejt se fshirja element pas elementi.<\/p>\n<p>N\u00eb figur\u00eb \u00ebsht\u00eb paraqitur nj\u00eb mas\u00eb tri-dimensionale n\u00eb global <strong>^a<\/strong> dhe lloje t\u00eb ndryshme fshirjesh.<\/p>\n<p><img decoding=\"async\" alt=\"Global\u00ebt \u2014 shpata-kthena p\u00ebr ruajtjen e t\u00eb dh\u00ebnave. Sfondet e shp\u00ebrndara. Pjesa 3\" src=\"\/wp-content\/uploads\/2019\/07\/cc85ee59d42595df0d72480d3e533a12.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nP\u00ebr t\u00eb zgjedhur copat e hap\u00ebsir\u00ebs sipas indekseve t\u00eb njohura, mund t\u00eb p\u00ebrdorim komand\u00ebn <noindex><a rel=\"nofollow\" href=\"http:\/\/docs.intersystems.com\/cache20152\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_cmerge\">Merge<\/a><\/noindex>.<\/p>\n<p>Zgjedhja e kolon\u00ebs s\u00eb matric\u00ebs n\u00eb variablin Column:<\/p>\n<pre><code class=\"bash\">; Le t\u00eb caktojm\u00eb nj\u00eb mas\u00eb t\u00eb holl\u00eb tri-dimensionale 3x3x3\nSet ^a(0,0,0)=1,^a(2,2,0)=1,^a(2,0,1)=1,^a(0,2,1)=1,^a(2,2,2)=1,^a(2,1,2)=1\nMerge Column = ^a(2,2)\n; Do t\u00eb nxjerrim variablin Column\nZwrite Column\n<\/code><\/pre>\n<p>\nP\u00ebrfundimi:<\/p>\n<pre><code class=\"bash\">Column(0)=1\nColumn(2)=1\n<\/code><\/pre>\n<p>\nAjo q\u00eb \u00ebsht\u00eb interesante \u00ebsht\u00eb se n\u00eb variablin Column kemi gjithashtu nj\u00eb mas\u00eb t\u00eb holl\u00eb, ndaj duhet t\u00eb qasemi gjithashtu p\u00ebrmes <noindex><a rel=\"nofollow\" href=\"http:\/\/docs.intersystems.com\/cache20152\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_fget\">$GET<\/a><\/noindex>, pasi vlerat standarde nuk ruhen aty.<\/p>\n<p>Zgjedhja e copave t\u00eb hap\u00ebsir\u00ebs gjithashtu mund t\u00eb b\u00ebhet p\u00ebrmes nj\u00eb programi t\u00eb vog\u00ebl duke p\u00ebrdorur funksionin <noindex><a rel=\"nofollow\" href=\"http:\/\/docs.intersystems.com\/cache20152\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_forder\">$Order<\/a><\/noindex>. Kjo \u00ebsht\u00eb ve\u00e7an\u00ebrisht e dobishme n\u00eb hap\u00ebsirat, ku indekset nuk jan\u00eb t\u00eb kuantizuara (hartografia).<\/p>\n<h2>P\u00ebrfundim<\/h2>\n<p>\nKoha aktuale vendos sfida t\u00eb reja ambicioze. Grafet mund t\u00eb p\u00ebrb\u00ebhen nga miliarda nod\u00eb, hartat nga miliarda pika, dhe ndonj\u00ebher\u00eb dikush mund t\u00eb d\u00ebshiroj\u00eb t\u00eb filloj\u00eb universin e tij me automata qelizor\u00eb (<noindex><a rel=\"nofollow\" href=\"http:\/\/lenta.ru\/news\/2009\/08\/28\/universe\/\">1<\/a><\/noindex>, <noindex><a rel=\"nofollow\" href=\"http:\/\/www.worldscientific.com\/worldscibooks\/10.1142\/4702\">2<\/a><\/noindex>).<\/p>\n<p>Kur volumi i t\u00eb dh\u00ebnave t\u00eb matrikseve t\u00eb rralla nuk mund t\u00eb p\u00ebrballohet m\u00eb nga memoria e p\u00ebrkohshme, dhe ne duhet t\u00eb punojm\u00eb me to, \u00ebsht\u00eb e arsyeshme t\u00eb shqyrtojm\u00eb mund\u00ebsin\u00eb e realizimit t\u00eb projekteve t\u00eb tilla n\u00eb global\u00eb dhe COS.<\/p>\n<p>Faleminderit p\u00ebr v\u00ebmendjen! Presim pyetjet dhe d\u00ebshirat tuaja n\u00eb komentet.<\/p>\n<p><b>Kufizimi<\/b>: <i>Ky artikull dhe komentet e mia p\u00ebr t\u00eb jan\u00eb mendimi im dhe nuk kan\u00eb t\u00eb b\u00ebjn\u00eb me pozitat zyrtare t\u00eb kompanis\u00eb InterSystems.<\/i><br \/>\n<br \/>Burimi: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/intersystems\/blog\/268465\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445 (1, 2) \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043e \u0433\u043b\u043e\u0431\u0430\u043b\u0430\u0445 \u043a\u0430\u043a \u043e \u0434\u0435\u0440\u0435\u0432\u044c\u044f\u0445, \u0432 \u044d\u0442\u043e\u0439 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u044b \u043a\u0430\u043a \u0440\u0430\u0437\u0440\u0435\u0436\u0435\u043d\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b. \u0420\u0430\u0437\u0440\u0435\u0436\u0435\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u2014 \u044d\u0442\u043e \u0440\u0430\u0437\u043d\u043e\u0432\u0438\u0434\u043d\u043e\u0441\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0447\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0435 \u0440\u0430\u0437\u0440\u0435\u0436\u0435\u043d\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b, \u0447\u0442\u043e \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u0442\u044c \u0441\u043c\u044b\u0441\u043b \u0440\u0430\u0437\u0440\u0435\u0436\u0435\u043d\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":27432,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-36632","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/globaly-mechi-kladentsy-dlya-hraneniya-dannyh-razrezhennye-massivy-chast-3\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0413\u043b\u043e\u0431\u0430\u043b\u044b \u2014 \u043c\u0435\u0447\u0438-\u043a\u043b\u0430\u0434\u0435\u043d\u0446\u044b \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u0420\u0430\u0437\u0440\u0435\u0436\u0435\u043d\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b. \u0427\u0430\u0441\u0442\u044c 3 | ProHoster\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/globaly-mechi-kladentsy-dlya-hraneniya-dannyh-razrezhennye-massivy-chast-3\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:12:47+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:12:47+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Global\u00ebt - shpata t\u00eb fshehura p\u00ebr ruajtjen e t\u00eb dh\u00ebnave. Matriksat e rrall\u00eb. Pjesa 3 | ProHoster","description":"","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/globaly-mechi-kladentsy-dlya-hraneniya-dannyh-razrezhennye-massivy-chast-3","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0413\u043b\u043e\u0431\u0430\u043b\u044b \u2014 \u043c\u0435\u0447\u0438-\u043a\u043b\u0430\u0434\u0435\u043d\u0446\u044b \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u0420\u0430\u0437\u0440\u0435\u0436\u0435\u043d\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b. \u0427\u0430\u0441\u0442\u044c 3 | ProHoster","og:url":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/globaly-mechi-kladentsy-dlya-hraneniya-dannyh-razrezhennye-massivy-chast-3","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:12:47+00:00","article:modified_time":"2019-10-31T19:12:47+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"36632","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-22 04:12:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:41:52","updated":"2026-01-22 04:12:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/36632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=36632"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/36632\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media\/27432"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=36632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=36632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=36632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}