Giter Club home page Giter Club logo

maximum-matching's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

maximum-matching's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Implement O(n^4) algorithm

//
//
///**
// *
// * Maximal weighted matching algorithm in O(n^4) (Edmonds 1965b)
// *
// * 
// * Adapted from the original french version of
// *
// * 
// * @book{opac-b1091171,
// *    title = "Graphs and algorithms",
// *    author = "Gondran, Michel and Minoux, Michel",
// *    series = "Wiley-Interscience series in discrete mathematics",
// *    publisher = "Wiley",
// *    address = "Chichester, West Sussex, New York",
// *    url = "http://opac.inria.fr/record=b1091171",
// *    isbn = "0-471-10374-8",
// *    note = "Traduction de : Graphes et algorithmes",
// *    year = 1984
// * }
// *
// * (see Chapter 7 Section 4)
// * {page 258 1979 French edition}
// */
//
//var wblossom_n4_t = function(){
//
//	var wblossom_n4 = function(g, n, maxweight){
//		var i, j, k, r;
//
//
//		/**
//		 * init empty matching
//		 * (m[i] == -1 => v_i not matched)
//		 * 
//		 * O(n)
//		 */
//		i = n;
//		var m = new Array(i);
//		while(i--) m[i] = -1;
//
//
//
//	// (a) init dual variables for vertices
//
//		/**
//		 * We assign p[i] = maxWeight / 2,
//		 * this way w(u*) = p(i) + p(j),
//		 * for all u* s.t. w(u*) = maxweight
//		 * 
//		 * O(n)
//		 */
//		i = n;
//		var p = new Array(i);
//		while(i--) p[i] = maxWeight / 2;
//
//
//
//		while(true){
//
//	// (b)
//			/**
//			 * r not matched and p[r] > 0
//			 * => m not weight maximal
//			 * 
//			 * O(n)
//			 */
//			r = n;
//			while(r-- && (m[r] >= 0 || p[r] === 0));
//
//			if(r < 0) break;
//
//	// (c)
//
//
//
//
//
//
//		}
//
//	};
//
//};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.