A little helper to complete homework #4 "Graph planarization" in discrete mathematics at ITMO University in the second semester.

Overview

graph_planarization

A little helper to complete homework #4 "Graph planarization" in discrete mathematics at ITMO University in the second semester. An example of the work performed using this program is included. The program doesn't draw graphs, but maybe later this feature will be added.

How to use it

In the main method of the Main class, you must set the adjacency matrix for your graph as a variable named graph. Weights can be different from 1. After launching the program, a veeeery long message will be displayed in the console, which, in fact, contains the complete solution. You should pay attention to strings like this:

max value of alpha = 11 and it gets by pair of psi(3)={1, 8, 10, 11, 12, 16} and psi(8)={2, 3, 4, 6, 7}

Unfortunately, you will have to build the graph yourself. The edges included in the Hamiltonian cycle should be located in a circle (the first line of the output). Edges from the first set should be drawn inside the circle, from the second set outside.

Also, if you happen to receive the message: remained one set..., then you should draw a graph with edges included in the Hamiltonian cycle and edges listed in the message.

To build a graph, you can use online resources, I recommend this site. So, you should get m (graph thickness) images similar to this:

yeah, like this

And that's the end of your work.

You might also like...

Micro second messaging that stores everything to disk

Micro second messaging that stores everything to disk

Chronicle Queue Contents Table of Contents Contents About Chronicle Software What is Chronicle Queue Java Docs Usage More benchmarks Downloading Chron

Jan 6, 2023

Math World is an android application specialized in mathematics discover more about it in README.

Math World is an android application specialized in mathematics discover more about it in README.

Math World App Math World is an Android Application specialized in mathematics, where the application includes some sections related to arithmetic, un

Mar 12, 2022

oj! Algorithms - ojAlgo - is Open Source Java code that has to do with mathematics, linear algebra and optimisation.

oj! Algorithms oj! Algorithms - ojAlgo - is Open Source Java code that has to do with mathematics, linear algebra and optimisation. General informatio

Dec 14, 2022

Collection of homework assignments I did for myself and for others while as an undergrad @ UNLV.

Collection of homework assignments I did for myself and for others while as an undergrad @ UNLV.

Mona Lisa Collection of homework assignments I did for myself and for others while as an undergrad @ UNLV. If you have questions or concerns please fe

May 10, 2022

Another fully updated version of the Homework Planner.

The Homework Planner Description This is another updated version of the homework planner, which is a simple and user-friendly application that allows

Jan 17, 2022

These are examples of work/homework from the Java Camp 2022.

Hi 👋 , This is Java Camp 2022 Repository These are examples of work/homework from the Java Camp 2022. 🔭 I’m currently working on JavaCamp2022 🌱 I’m

Oct 19, 2022

Elite Dangerous Odyssey Materials Helper

Elite Dangerous Odyssey Materials Helper

Elite Dangerous Odyssey Materials Helper This application reads the journal files to track which materials you have and make it instantly visible. It

Jan 7, 2023

📺 一个基于BILIBILI-HELPER 的集中化平台。

Bilibili Helper Hub 📺 Bilibili Helper Hub,一个基于BILIBILI-HELPER 的集中化平台。 Notice 该项目不会在你不知情的情况下存储你提供的Cookie数据以及通过B站官方接口获取的用户数据。 Thanks 该项目基于 JunzhouLiu/B

Dec 29, 2022

Parser of the table of contents file of the 1C platform syntax helper

Parser of the table of contents file of the 1C platform syntax helper

Парсер файла оглавления синтакс-помощника платформы 1С Что делает? Парсит вот это: Оглавление представляет собой файл без расширения, лежит в файле sh

Jan 27, 2022

A helper for creating inventories in minecraft with greater ease and flexibility in order to promote integration with objects

A helper for creating inventories in minecraft with greater ease and flexibility in order to promote integration with objects

Dec 27, 2022

Helper tool to calculate the price for a given amount of users within a graduated pricing model.

Lithic Hi Lithic, This small piece of software is a coding exercise I asked some candidates to solve and is based on the pricing model of Atlassian pr

Feb 27, 2022

A Java Redis PubSub helper which let you send full objects without need of manual serializing

A Java Redis PubSub helper which let you send full objects without need of manual serializing

Nov 30, 2022

eWordle: an extended version of Wordle with full-featured helper.

eWordle An extended version of Wordle (Mini Project of EBU4201) with full-featured helper. How to Play Guess the Wordle word in tries just one more th

Jun 11, 2022

Object Oriented Programming Course - Fall Semester 2021

Object Oriented Programming Course (Fall Semester 2021) This repository will store the code we use during the lectures and the exercises sessions of t

Jul 10, 2022

Student Result Management System - This is a CLI based software where the Software is capable of maintaining and generating Student's Result at the end of a semester after the teacher's have provided the respective marks.

Student Result Management System This is a CLI based software where the Software is capable of maintaining and generating Student's Result at the end

Aug 27, 2022

Aplikasi Android "MovieApp" untuk memenuhi salah satu syarat Ujian Akhir Semester mata kuliah Pengembangan Aplikasi Mobile UIN Sunan Gunung Djati Bandung.

Aplikasi Android

MovieApp Kelompok No Way Home, berikut list anggota-nya: Fakhri Faishal Rochdiana (1197050040) Muhamad Taopik (1197050081) Naufal Rizqullah (119705009

Dec 22, 2022

Compilation of code scripts from the Fall 2021 semester of Intelligent Tunneling subteam.

VIP-Fall-2021 Compilation of code scripts from the Fall 2021 semester of Intelligent Tunneling subteam. Table of Contents Overview Data Normalization

Feb 2, 2022

Three Java projects assigned for the Introduction to Object-Oriented Programming (CMPE 160) course in the Spring 2021 semester.

CMPE160-projects Three Java projects assigned for the Introduction to Object-Oriented Programming (CMPE 160) course in the Spring 2021 semester. These

Dec 6, 2022

Five Java projects assigned for the Data Structures and Algorithms (CMPE 250) course in the Fall 2021-22 semester.

CMPE250-projects Five Java projects assigned for the Data Structures and Algorithms (CMPE 250) course in the Fall 2021-22 semester. These projects app

Aug 17, 2022
Owner
Daria Starikova
Daria Starikova
👨‍🏫ITMO University first 4 labs. They are about object oriented programming and Java language

Java-Programming-1st-semester 1st lab - math operations, formatted output. 2nd lab - object oriented programming. 3rd lab - SOLID and STUPID principle

Andrey Vasiliev 4 Dec 1, 2022
Math World is an android application specialized in mathematics discover more about it in README.

Math World App Math World is an Android Application specialized in mathematics, where the application includes some sections related to arithmetic, un

null 7 Mar 12, 2022
oj! Algorithms - ojAlgo - is Open Source Java code that has to do with mathematics, linear algebra and optimisation.

oj! Algorithms oj! Algorithms - ojAlgo - is Open Source Java code that has to do with mathematics, linear algebra and optimisation. General informatio

Optimatika 403 Dec 14, 2022
This repository consists of the code samples, assignments, and the curriculum for the Community Classroom complete Data Structures & Algorithms Java bootcamp.

DSA-Bootcamp-Java Subscribe to our channel Complete Playlist Syllabus Discord for discussions Telegram for announcements Connect with me     Follow Co

Kunal Kushwaha 10.2k Jan 1, 2023
💻ITMO University, 2nd semester, lab8.

Swing-GUI-desktop-application ITMO University, 2nd semester, lab8. In this lab I add graphical user interface(Swing library) for this app Lab7 Video d

Andrey Vasiliev 3 Oct 26, 2022
⌨️Console client-server desktop application. ITMO University labs.

Java-Programming-2nd-semester ITMO University labs. Console client-server desktop application. lab5 - manage collection application, command line, man

Andrey Vasiliev 4 May 18, 2022
👨‍🏫ITMO University first 4 labs. They are about object oriented programming and Java language

Java-Programming-1st-semester 1st lab - math operations, formatted output. 2nd lab - object oriented programming. 3rd lab - SOLID and STUPID principle

Andrey Vasiliev 4 Dec 1, 2022
OBJECT ORIENTED PROGRAMING IN JAVA Coursera SPECIALIZATION by DUKE UNIVERSITY & UNIVERSITY OF CALIFORNIA, SAN DIEGO

COURSERA Object Oriented Programming in Java Object Oriented Programming in Java -> by Duke University & University of California, San Diego Java Prog

Farhan Sheth 6 Dec 29, 2022
Micro second messaging that stores everything to disk

Chronicle Queue Contents Table of Contents Contents About Chronicle Software What is Chronicle Queue Java Docs Usage More benchmarks Downloading Chron

Chronicle Software : Open Source 2.8k Jan 4, 2023