#include iostreamusing namespace std;int main(){ int filas, colum; cout "Ingrese la cantidad de filas de la matriz de la relación de orden: " endl; cin filas; cout "Ingrese la cantidad de columnas de la matriz de la relación de orden: " endl; cin colum; int matrizRO[filas][colum]; //matriz de relación de orden int matrizRO2[filas][colum]; int matrizm2[filas][colum]; int matrizPI[filas][colum]; // Ingresamos las entradas de la matriz de relación de orden cout "Ingrese las entradas de la matriz de la relación de orden" endl; for(int i = 0; i filas; i++){ for(int j = 0; j colum; j++){ cout "Ingrese la entrada a" i j endl; cin matrizRO[i][j]; } } // Restamos la matriz identidad a nuestra matriz for(int diagonal = 0; diagonal colum; diagonal++) { matrizRO[diagonal][diagonal] = 0; } //Imprimimos el valor de M cout "Matriz M: " endl; for(int i = 0; i filas; i++){ for(int j = 0; j colum; j++){ cout matrizRO[i][j] " "; } cout endl; } //segunda matriz for(int i = 0; i filas; i++){ for(int j = 0; j colum; j++){ matrizRO2[i][j] = matrizRO[i][j]; } } // //Calculamos M^2 (Binarizada) for(int i=0;ifilas;i++){ for(int j=0;jcolum;j++){ matrizm2[i][j]=0; for(int k=0;kcolum;k++){ if(matrizRO[i][k] == 1 and matrizRO2[k][j] == 1) matrizm2[i][j] = 1; } } } // Imprimimos M^2 cout "Matriz M^2: " endl; for(int i = 0; i filas; i++){ for(int j = 0; j colum; j++){ cout matrizm2[i][j] " "; } cout endl; } //Calculamos la matriz de la relación predecesor inmediato for(int i = 0; i filas; i++){ for(int j = 0; j colum; j++){ matrizPI[i][j] = matrizRO[i][j] - matrizm2[i][j]; } } //Imprimimos la matriz de la relación predecesor inmediato cout "Matriz de la relación predecesor inmediato: " endl; for(int i = 0; i filas; i++){ for(int j = 0; j colum; j++){ cout matrizPI[i][j] " "; } cout endl; } return 0;}
#include iostreamusing namespace std;int main(){ int n; char respuesta; do{ cout "Ingrese el valor de n para su matriz de orden nxn " endl; cin n; int matrizR[n][n]; //matriz de relación de orden y luego de la relación predecesor inmediato. int matrizm2[n][n]; // Ingresamos las entradas de la matriz de relación de orden cout "Ingrese las entradas de la matriz de la relación de orden" endl; for(int i = 0; i n; i++){ for(int j = 0; j n; j++){ cout "Ingrese la entrada a" i j endl; cin matrizR[i][j]; //Anulando diagonal principal al momento de ingresar la matriz if(i == j) matrizR[i][j] = 0; } } //Calculamos M^2 (Binarizada) for(int i=0;in;i++){ for(int j=0;jn;j++){ matrizm2[i][j]=0; for(int k=0;kn;k++){ if(matrizR[i][k] == 1 and matrizR[k][j] == 1){ matrizm2[i][j] = 1;
break;
} } } } //Calculamos la matriz de la relación predecesor inmediato y la imprimimos al mismo tiempo cout "Matriz de la relación predecesor inmediato:" endl; for(int i = 0; i n; i++){ for(int j = 0; j n; j++){ matrizR[i][j] = matrizR[i][j] - matrizm2[i][j]; cout matrizR[i][j] " "; } cout endl; } cout "Desea obtener una nueva matriz de la relación predecesor inmediato a partir de otra matriz de relación de orden? si = s no = n" endl; cin respuesta; }while(respuesta == 's'); return 0;}
injury lawyers west palm beach online motor insurance quotes Learning adobe illustrator Casino reviews Online casino Make money online Australia STRUCTURED ANNUITY SETTLEMENT Business management software structured settlement buyer semi truck accident lawyers asterisk call center software Asbestos Lawyers Bankruptcy lawyer ONLINE MOTOR INSURANCE QUOTES mesothelioma law suits CAR ACCIDENT LAWYERS best criminal lawyer in arizona Service business software Custom Christmas cards mesothelioma attorney florida Casino Donate car for tax credit Cheap Car Insurance in Virginia MORTGAGE ADVISER mesotheolima Business finance group Psd to html Massage school Dallas Texas Cheap Domain Registration Hosting what is structured settlement Car Insurance Quotes Utah MASSAGE SCHOOL DALLAS TEXAS student loan consolidation program Donate old cars to charity Online Motor Insurance Quotes Tech school Online Christmas cards Dwi lawyer Injury Lawyers structured settlement cash out fortis health insurance temporary Proud Italian cook Php programmers Forex Trading Platform Mobile casino ashely madis mesothelioma symptoms truck accident attorney los angeles sell annuity payment Donate Cars in MA Auto Mobile Insurance Quote cash out structured settlement Php programmers for hire Html email bus accident attorneys Photo Christmas cards car insurance quotes colorado Seo services PhD in counseling education car accident lawyers west palm beach Live casino DUI lawyer Hire php developers Psd to WordPress Car Insurance Quotes MN CRIMINAL DEFENSE ATTORNEYS FLORIDA workers compensation lawyer los angeles HARDDRIVE DATA RECOVERY SERVICES LIFE INSURANCE CO LINCOLN Computer science classes online Social media platforms for business Hire php programmers Criminal lawyer car donate Annuity Settlements ASBESTOS LAWYERS MET AUTO personal injury attorney springfield mo supportpeachtreecom Criminal defense lawyer Donate your Car for Money Hard drive Data Recovery Services benchmark lending Hire php developer Paperport Promotional Code Seo companies Asbestos Lung Cancer Best Criminal Lawyers in Arizona Seo company World Trade Center Footage Best social media platforms for business Custom WordPress theme designer New social media platforms canada personals yahoo Online Criminal Justice Degree life insurance quotes HOW TO DONATE A CAR IN CALIFORNIA buyer of structured settlement annuity mesothelioma lawyer dallas saskatchewan auto insurance yahoo web hosting ANNUITY SETTLEMENT houston tx auto insurance Donate Your Car for Kids Donating Used Cars to Charity colorado auto accident attorney Best Seo company mesothelioma ct How to donate a car in California best consolidation loan student Best social media platforms Social media examiner Psychic for Free Health Records Personal Health Record donating used cars to charity mesothelioma trial attorney Donate your car Sacramento cheap domain registration hosting mesothelioma lawsuit Adobe illustrator classes uk homeowner loans PAPERPORT PROMOTIONAL CODE Cheap Auto Insurance in VA CAR INSURANCE QUOTES MN CHEAP CAR INSURANCE IN VIRGINIA new mexico mesothelioma lawyer california motorcycle accident lawyer motor replacements WordPress themes for designers Car Insurance Quotes Colorado WordPress hosting accident attorney in los angeles PHD on Counseling Education bus accident attorney los angeles tucson car accident attorney motorcycle accident attorney chicago Social media management home phone internet bundle Social media platforms primary pulmonary hypertension Christmas cards FUTURISTIC ARCHITECTURE buying an annuity calculator CHEAP AUTO INSURANCE IN VA Neuson Motor Replacements Donating a car in Maryland phd in counseling education Donate a Car in Maryland Italian cooking school structured settlements companies See more at http//wwwginfostopnet/ email bulk service online criminal justice degree WordPress theme designers Social media strategies personal injury firm Social media tools Donate Car to Charity California auto accident attorney structured settlement purchasers Car Insurance in South Dakota Social media campaigns Mesothelioma Law Firm Donate Car for Tax Credit Forensics Online Course Online colledges car accident lawyer san bernardino dui lawyer scottsdale offshore accident lawyer Donate Your Car Sacramento How to Donate A Car in California Sell Annuity Payment Online motor insurance quotes Structures Annuity Settlement car insurance companies washington mesothelioma attorney adverse credit remortgage Nunavut Culture Dayton Freight Lines Insurance Companies Virtual Data Rooms best mesothelioma lawyers adverse remortgage Data Recovery Raid Donating a Car in Maryland Donate Cars Illinois Criminal Defense Attorneys Florida domain registration yahoo Business VOIP Solutions structured settlement sell DONATE CARS IN MA AUTOMOBILE ACCIDENT ATTORNEY motorcycle accident lawyer san francisco michigan motorcycle accident lawyer Life Insurance Co Lincoln earthlink business internet Motor replacements asbestos lawyers Holland Michigan College Online Colleges mesothelioma settlement amounts Automobile Accident Attorney Online Classes motor insurance quotes Royalty free images stock Car Insurance Companies Massage School Dallas Texas FORENSICS ONLINE COURSE Dedicated Hosting Dedicated Server Hosting Donate Old Cars to Charity Low Credit Line Credit Cards Cheap car insurance for ladies Car Insurance Quotes PA Dallas Mesothelioma Attorneys mesothelioma lawyer virginia accident car florida lawyer criminal defense federal lawyer selling my structured settlement asbestos lung cancer la personal injury lawyer CHEAP CAR INSURANCE FOR LADIES donate your car for kids Met Auto Home Phone Internet Bundle futuristic architecture NEUSON dallas mesothelioma lawyer royalty free images stock EMAIL BULK SERVICE illinois law lemon Royalty Free Images Stock Email Bulk Service MOTOR REPLACEMENTS Webex Costs Cheap Car Insurance for Ladies buy gift card Register free domains Register Free Domains car accident lawyers los angeles Better Conference Calls Futuristic Architecture Mortgage Adviser Car Donate register free domains DONATE CARS ILLINOIS Online College Course Auto Accident Attorney mesothelioma attorney assistance Car Accident Lawyers

















