THE ALGORITHM YEN. STAGE 4: If i<n get back to the stage 3 otherwise stop. Example:

Similar documents
VIBRATIONS MEASUREMENT IN ORDER TO IDENTIFY THE FAULTS TO THE TABLES AND SUPPORTS ON WHICH THE EMBROIDERY MACHINES ARE PLACED

Dijkstra s Algorithm (5/9/2013)

SAG MITTIGATION TECHNICS USING DSTATCOMS

Finite Element Modelling and Analysis of Simlpe Ultrasonic Horns

Modeling, Analysis and Optimization of Networks. Alberto Ceselli

MILLING PROCESS MANAGEMENT

Stanford University CS261: Optimization Handout 9 Luca Trevisan February 1, 2011

A construction of infinite families of directed strongly regular graphs

INFORMAȚII DESPRE PRODUS. FLEXIMARK Stainless steel FCC. Informații Included in FLEXIMARK sample bag (article no. M )

ON THE TRANSIENTS OPTIMIZATION AND THE POWER FACTOR CORRECTION OF THE STATIC CONVERTERS

Greedy Algorithms. Kleinberg and Tardos, Chapter 4

TOOL PRODUCTION VIA RAPID TOOLING

MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Graphs, Linear Equations and Functions

THE COEFFICIENT OF FRICȚION IN THE FRETTING PHENOMENON

FACULTATEA DE INGINERIE ELECTRICĂ. Ing. Lucian Diodiu. PHD Thesis ABSTRACT

ELECTROSTATIC DISCHARGE E-FIELD SPECTRUM ANALYSIS AND GRAPHICAL INTERPRETATION

ASPECTS OF GRINDING LARGE PIECES OF RUBBER ROLLERS IN PAPER INDUSTRY

Centers tehnology transfer-active factor an the regional development

RESEARCH CONCERNING THE INFLUENCE OF ANGLE OF FILING FROM THE KNIFE BLADES VINDROVERS ON THE MECHANICAL WORK ON CUTTING

CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Sep 25. Homework #1. ( Due: Oct 10 ) Figure 1: The laser game.

Professor Laurean BOGDAN, PhD. My Web Page

Lucrări ştiinţifice și cărţi în domeniul disciplinelor din postul didactic

METHODS AND PRINCIPLES OF OPTIMIZATION SPECIFIC TO THE DOMAIN OF EQUIPMENT AND MANUFACTURING PROCESSES

Forward and backward DAWG matching. Slobodan Petrović

MODERN INSTRUMENTS FOR ANALYSIS OF HYDROSTATIC TRANSMISSIONS

PARAMETER IDENTIFICATION IN RADIO FREQUENCY COMMUNICATIONS

DETERMINATION OF THE SIZE OF BLANK NECESSARY TO OBTAIN A DEEP DRAWING USING SOLIDWORKS

Application of combined TOPSIS and AHP method for Spectrum Selection in Cognitive Radio by Channel Characteristic Evaluation

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.

28,800 Extremely Magic 5 5 Squares Arthur Holshouser. Harold Reiter.

ABOUT THE PLANING CROSS LAMINATED SOLID WOOD

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION MH1301 DISCRETE MATHEMATICS. Time Allowed: 2 hours

"Ecology of XXI Century Transforming our World: the 2030 Agenda for Sustainable Development"

The Influence of Thyristor Controlled Phase Shifting Transformer on Balance Fault Analysis

Link State Routing. Stefano Vissicchio UCL Computer Science CS 3035/GZ01

ALGEBRA: Chapter I: QUESTION BANK

Huffman Coding - A Greedy Algorithm. Slides based on Kevin Wayne / Pearson-Addison Wesley

CSC 396 : Introduction to Artificial Intelligence

SCIENTIFIC AND TECHNOLOGICAL INNOVATION

CSL 356: Analysis and Design of Algorithms. Ragesh Jaiswal CSE, IIT Delhi

Monitoring System for Reducing the Electric Equipment Stress in Transport and Distribution Lines

Examination paper for TDT4120 Algorithms and Data Structures

Link State Routing. Brad Karp UCL Computer Science. CS 3035/GZ01 3 rd December 2013

Decoding Turbo Codes and LDPC Codes via Linear Programming

Reducing Location Registration Cost in Mobile Cellular Networks

Distance-Vector Routing

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

ARE THE STATIC POWER CONVERTERS ENERGY EFFICIENT?

LISTA COMPLETĂ A LUCRĂRILOR ELABORATE

The driving force for your business.

Name: Class: Date: 6. Explain how you could use a number line to determine the number that is 7 more than 9. What is the number?

Simulation Model for Foreign Trade During the Crisis in Romania

METHODS AND PRINCIPLES OF OPTIMIZATION SPECIFIC TO THE DOMAIN OF EQUIPMENTS AND MANUFACTURING PROCESSES

Distributed Systems. Clocks, Ordering, and Global Snapshots

GIMNAZIALĂ LUNCA, PAȘCANI

Algorithms and Data Structures: Network Flows. 24th & 28th Oct, 2014

Network-building. Introduction. Page 1 of 6

Voltage Drop Compensation and Congestion Management by Optimal Placement of UPFC

VIBRATIONS LEVEL ANALYSIS DURING THE OPERATION OF A HIGH HEAD HYDROPOWER PLANT

MECHATRONIC TECHNOLOGIES USED IN INFO-DOCUMENTARY STRUCTURES AUTOMATISATION

Unless stated otherwise, explain your logic and write out complete sentences. No notes, books, calculators, or other electronic devices are permitted.

Identification of weak buses using Voltage Stability Indicator and its voltage profile improvement by using DSTATCOM in radial distribution systems

CSE 123: Computer Networks

The Effect of Fuzzy Logic Controller on Power System Stability; a Comparison between Fuzzy Logic Gain Scheduling PID and Conventional PID Controller

Edge-disjoint tree representation of three tree degree sequences

Problem Set pour from the receptacle to a bucket until the bucket is full or the receptacle is empty, whichever happens first,

Lecture5: Lossless Compression Techniques

MACHINING BY ELECTRICAL EROSION THE GEAR WHEELS

Comparison of Various Neural Network Algorithms Used for Location Estimation in Wireless Communication

ENVIRONMENTAL PARAMETERS LABORATORY MEASUREMENTS WITH VIRTUAL INSTRUMENTATION

Written examination TIN175/DIT411, Introduction to Artificial Intelligence

STUDIES REGARDING THE CALCULATION OF SLIDING FIT DIMENSION CHAIN

OSPF Fundamentals. Agenda. OSPF Principles. L41 - OSPF Fundamentals. Open Shortest Path First Routing Protocol Internet s Second IGP

OSPF - Open Shortest Path First. OSPF Fundamentals. Agenda. OSPF Topology Database

CSE101: Design and Analysis of Algorithms. Ragesh Jaiswal, CSE, UCSD

A Gentle Introduction to Dynamic Programming and the Viterbi Algorithm

MODELING THE ELECTROMAGNETIC POLLUTION OF THE ELECTRIC ARC FURNACES

The Apprentices Tower of Hanoi

Curriculum vitae Europass

FACULTY OF ELECTRONICS, TELECOMMUNICATIONS AND INFORMATION TECHNOLOGY. Ing. Norbert Ştefan Toma. PhD THESIS SUMMARY

LISTA LUCRĂRILOR Ing. ANA-ANDREEA MIHĂRTESCU

SOLITAIRE CLOBBER AS AN OPTIMIZATION PROBLEM ON WORDS

2005 Fryer Contest. Solutions

Location Problems in Wireless Sensor Network for Improving Its Reliability and Performance

Calculus II Fall 2014

Lectures: Feb 27 + Mar 1 + Mar 3, 2017

DETERMINING ADDITIONAL POWER AND ENERGY LOSSES IN LOW VOLTAGE ELECTRICITY DISTRIBUTION NETWORKS OPERATED IN DISTORTED AND UNBALANCED OPERATION STATES

A new mixed integer linear programming formulation for one problem of exploration of online social networks

Graphs and Network Flows IE411. Lecture 14. Dr. Ted Ralphs

AUTOMATED MEASUREMENT SETUP FOR MICROCONTROLLERS AND MAGNETIC SENSORS

Unicast Barrage Relay Networks: Outage Analysis and Optimization

Power Active Filter Based on Synchronous Reference System Theory

MRN -4 Frequency Reuse

Numerical Methods for Optimal Control Problems. Part II: Local Single-Pass Methods for Stationary HJ Equations

Updating the Nomographical Diagrams for Dimensioning the Concrete Slabs

Finite Element Analysis of a Single-Phase Alternating Current Meter

Static Positioning Using UWB Range Measurements

Indoor Localization in Wireless Sensor Networks

Digital Television Lecture 5

Transcription:

THE ALGORITHM YEN Constantin BOGDAN -.PhD., Machines and Installation Departement, University of Petroşaniă, ROMANIA, tica1234ticabogdt@yahoo.com Olimpia PECINGINA - Assistant Professor, "University of Constantin Brancusi", Tg-jiu,, ROMANIA, pecinginaolimpia@yahoo.com Dragos Vasile VÎGA PhD,DEPARTAMENT OF MACHINES AND INSTALLATIONS, UNIVERSITY OF PETROSANI, ROMANIA (e-mail: dragosviga71@gmail.com) Abstract: In this article are made an implementation of an optimum transport networks using methods very useful Yen type especially as execution times are good and the algorithm adapts very easily to practical situations. Key words: transport, optimizations, mechanics 1.Introduction Get a graph-orientedă Gă =ă (V,ă M)ă andă aă functionă c:mă xă Ră ă r.ă Giveă aă nodă toă go.ă Require minimal roads from p to any node node i. Consider costs associated with a w matrix graf and want to get shorter distance from top to any other. STAGE 1: D=W STAGE 2: I=1;h(k)=0,h(j0)=1 pt 1<=j<=n,j<>k STAGE 3 Compute min{d[k,j], 1<=j<=n,h(j)=1} Compute j0 so h(j0)=1 and d[k,j0]= min{d[k,j], 1<=j<=n,h(j)=1} B(j0)=d[k,j0],h(j0)=0 D[k,j]=min{d[k,j],d[k,j0],d[j0,j]}, for all j, 1<=j<=n, i=i+1 STAGE 4: If i<n get back to the stage 3 otherwise stop. Example: 267

Figure 1 1) write the attached matrix d; 2)i=1,h=(0,1,1,1,1),b(1)=0; j0=3,b(3)=2,h=(0,1,0,1,1) i=2 3)i<5 return to stage 3 j0=2 b(2)=3,h=(0 0 0 1 1 ) {THE ALGORITHM YEN: to determine the shortest distance from a to any other. If no connection is 10000 (a [i, 1] = 0 and is no longer required, for i=1...n) ex:n=5 3 2 7 4 3 5 10000 1000 2 5 4 1 7 10000 4 10000 4 10000 1 10000 from the knot 1 => minimum distances 1----->2 e 3... } var d,w:array[1..20,1..20] of real; k,i,j,n,l,j0:byte; v,b:array[1..20] of real; 268

min:real; function minim(x,y:real):real; if x<y then minim:=x else minim :=y; writeln('n=');readln(n); if i<>j then write('w[',i,' ',j,']='); readln(w[i,j]); d[i,j]:=w[i,j]; end else w[i,j]:=10000; d[i,j]:=10000; writeln('varful dorit ');readln(k); v[i]:=1; v[k]:=0;b[k]:=0; min:=10000; if (v[j]=1) and (d[k,j]<min) then j0:=j; min:=d[k,j]; d[k,j]:=minim(d[k,j],d[k,j0]+d[j0,j]); v[j0]:=0; b[j0]:=d[k,j0]; writeln(' minimum distances from the ',k, ' the other peaks ' ); write(k,'------>',i); writeln(':',b[i]); readln; end. 269

2. Conclusions Suppose we have a graph in which all edges have length equal to the number of vertices is n and the edges of m and the connections between knowing that there are edges to determine minimum length between two nodes that you read from the keyboard STAGE I: - start from the end of his neighbours with marches 1-for each next door neighbors with their marches not marches (meaning it marks each node with dad)-as do all STAGE II - If you do I mark and then marking of node x is the minimum distance when I get to it ex:n=4 m=4 Figure 2 var n,m,i,j,nc,nd,nd,nuc:integer; a:array[1..30,1..30] of 0..1; costurile:array[1..30] of integer; procedure parcurginlatimegraful(x:integer); var p,u,virf,j,costuldelaunnodlaaltul:integer; c:array[1..30] of integer; gata:boolean; p:=1;u:=1; costurile[x]:=-1;costuldelaunnodlaaltul:=0;c[p]:=x; gata:=false; while (p<=u) and not gata do virf:=c[p]; costuldelaunnodlaaltul:=costuldelaunnodlaaltul+1; if (a[virf,j]=1) and (costurile[j]=0) then u:=u+1;c[u]:=j; costurile[j]:=costuldelaunnodlaaltul; if j=nd then gata:=true;writeln('lantul are lungimea minima ',costuldelaunnodlaaltul); 270

p:=p+1; write(' dati numarul de noduri n=');readln(n); write(' dati numarul de muchii m=');readln(m); writeln(' muchiile '); for i:=1 to m do writeln('primul nod al muchiei ',i);readln(nc); writeln('al doile nod al muchiei ',i);readln(nd); a[nc,nd]:=1; a[nd,nc]:=1; write('nodul de plecare ');readln(nd); write('nodul de sosire ');readln(nuc); parcurginlatimegraful(nuc); if costurile[nd]=0 then writeln(' nu este lant intre ',nd, ' si nodul ',nuc); readln; end. 3. Bibliography 1. BERCEA, N. Optimizarea capacităţii de excavare a excavatoarelor cu roată cu cupe prin modernizarea acţionărilor electrice. Revista minelor nr. 12/2002 2. DAFINOIU, M. Analysis of the specific forces and strugths born during the sterile rocks cutting performed at Roşiuţa open pif. Annalsă ofă theă Universityă ofă Petroşani,ă Mechanicală engineering, vol. 6 (XXXIII), 2004, ISSN 1454-9166 3.FODOR, D. Exploatări miniere la zi.ăedituraădidactic ăşiăpedagogic,ăbucureşti,ă1980 4.ăKOVACS,ăI.,ăNAN,ăM.S.,ăANDRAŞ,ăI.ăJULA,ăD. Stabilirea regimului extrem de funcţionare a excavatoarelor cu roată portcupe.ă Lucr rileă ştiinţificeă aleă Simpozionuluiă Internaţională Universitariaă ROPETă 2002 ă 17-19 oct.2002 Petroşaniă Inginerieămecanic 5.ăKOVACS,ăI.,ăILIAŞ,ăN.,ăNAN,ăM.S.ăRegimul de lucru al combinelor miniere. EdituraăUniversitas,ăPetroşani,ă2000. 6.ăNAN,ăM.S.,ăKOVACS,ăI.,ăANDRAŞ,ăI.,ăMAGYARI,ăA. Despre rezultatele încercărilor experimentale privind determinarea unghiului de rupere a lignitului la aşchierea acestuia.ăconferinţaăxxxvii-aădeămaşiniăşiăelectrotehnic ăminier.ă Balatongyörök-2004-Ungaria 7. OZDEMIR, L. Comparison of Cutting Efficiencies of Single-Disc, Multi-Disc and Carbide Cutters for Microtunneling Applications, în NO-DIG ENGINEERING Vol. 2, No. 3, 2002 8.ăPECINGIN,ăGH. Îmbunătăţirea construcţiei organului de tăiere la excavatoarele folosite în minele de lignit. Tez ădeădoctorat.ăuniversitateaădinăpetroşani,ă2004. 9. POPESCU, FL. Programarea şi utilizarea calculatoarelor. Editura SIGMA PLUS, Deva, 2002 10. RIDZI, M.C. Analiza experimentală a tensiunilor.ă ă Edituraă UNIVERSITASă Petroşani,ă 2004 271