// // libsemigroups - C++ library for semigroups and monoids // Copyright (C) 2019 Michael Young // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. //
// This file defines UFOld, a class used to make an equivalence relation on // the integers {1 .. n}, using the UNION-FIND METHOD: new pairs can be added // and the appropriate classes combined quickly.
#include <cstddef> // for size_t #include <vector> // for vector
namespace libsemigroups { namespace detail { class UFOld final { public: using table_type = std::vector<size_t>; using blocks_type = std::vector<table_type*>;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.