Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
A
Approximate DNF-Counting Algorithms
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aditya
Approximate DNF-Counting Algorithms
Commits
d74d4c4f
Commit
d74d4c4f
authored
Jan 30, 2019
by
Aditya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added License and Readme
parent
3d604dd0
Changes
51
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
51 changed files
with
1702 additions
and
1 deletion
+1702
-1
COPYING
COPYING
+675
-0
CUSP.cpp
CUSP.cpp
+20
-0
CUSP.h
CUSP.h
+20
-0
DKL.cpp
DKL.cpp
+21
-1
DKL.h
DKL.h
+18
-0
DNFCUSP.cpp
DNFCUSP.cpp
+18
-0
DNFCUSP.h
DNFCUSP.h
+18
-0
DNFCUSP_main.cpp
DNFCUSP_main.cpp
+18
-0
DNFDKL.cpp
DNFDKL.cpp
+18
-0
DNFDKL.h
DNFDKL.h
+18
-0
DNFDKLM.cpp
DNFDKLM.cpp
+18
-0
DNFDKLM.h
DNFDKLM.h
+18
-0
DNFDKLNaive.cpp
DNFDKLNaive.cpp
+18
-0
DNFDKLNaive.h
DNFDKLNaive.h
+18
-0
DNFFormula.h
DNFFormula.h
+18
-0
DNFKLM.cpp
DNFKLM.cpp
+18
-0
DNFKLM.h
DNFKLM.h
+18
-0
DNFKLMCUSP.cpp
DNFKLMCUSP.cpp
+18
-0
DNFKLMCUSP.h
DNFKLMCUSP.h
+18
-0
DNFKLMCUSP_main.cpp
DNFKLMCUSP_main.cpp
+18
-0
DNFParser.cpp
DNFParser.cpp
+18
-0
DNFParser.h
DNFParser.h
+17
-0
DNFUpperBound.h
DNFUpperBound.h
+18
-0
ExactCount.cpp
ExactCount.cpp
+18
-0
ExactCount.h
ExactCount.h
+18
-0
Gray.cpp
Gray.cpp
+20
-0
Gray.h
Gray.h
+18
-0
Hash.h
Hash.h
+18
-0
HashSolution.h
HashSolution.h
+18
-0
KLSampler.cpp
KLSampler.cpp
+22
-0
KLSampler.h
KLSampler.h
+22
-0
NaiveSampler.cpp
NaiveSampler.cpp
+18
-0
NaiveSampler.h
NaiveSampler.h
+18
-0
README.md
README.md
+127
-0
RandomBits.cpp
RandomBits.cpp
+19
-0
RandomBits.h
RandomBits.h
+18
-0
RowEchelonHash.cpp
RowEchelonHash.cpp
+18
-0
RowEchelonHash.h
RowEchelonHash.h
+18
-0
RowEchelonHash_old_working_modified.cpp
RowEchelonHash_old_working_modified.cpp
+18
-0
RowEchelonHash_old_working_modified.h
RowEchelonHash_old_working_modified.h
+18
-0
Sampler.h
Sampler.h
+18
-0
Timers.h
Timers.h
+19
-0
ToeplitzHash.cpp
ToeplitzHash.cpp
+18
-0
ToeplitzHash.h
ToeplitzHash.h
+18
-0
W2UDNFKLMCUSP.cpp
W2UDNFKLMCUSP.cpp
+18
-0
W2UDNFKLMCUSP.h
W2UDNFKLMCUSP.h
+18
-0
WDNFDKL.cpp
WDNFDKL.cpp
+18
-0
WDNFDKL.h
WDNFDKL.h
+18
-0
WDNFSampler.cpp
WDNFSampler.cpp
+18
-0
WDNFSampler.h
WDNFSampler.h
+18
-0
tolerance_confidence_cusp.h
tolerance_confidence_cusp.h
+18
-0
No files found.
COPYING
0 → 100644
View file @
d74d4c4f
This diff is collapsed.
Click to expand it.
CUSP.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
* Copyright (c) 2016, 2013, Supratik Chakraborty, Kuldeep S. Meel, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Foobar 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 Foobar. If not, see <https://www.gnu.org/licenses/>.
*/
//#include <ctime>
#include <cstring>
//#include <errno.h>
...
...
CUSP.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
* Copyright (c) 2016, 2013, Supratik Chakraborty, Kuldeep S. Meel, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Foobar 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 Foobar. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef CUSP_H_
#define CUSP_H_
...
...
DKL.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
* Copyright (c) 2008, MayBMS Development Group
*
Approximate DNF-Counting Suite 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.
Foobar 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 Foobar. If not, see <https://www.gnu.org/licenses/>.
*/
#include <cassert>
#include "DKL.h"
...
...
@@ -6,7 +26,7 @@ using std::cout;
using
std
::
endl
;
/* Adapted from MayBMS implementation of AA algorithm in source/src/backend/maybms/aconf.c
*
Original Copyright MayBMS Development Grop, 2008
*
*
* Algorithm modified from MayBMS to use only two sets of random variables Z_i and Z_i' as defined in the paper.
* In particular, the results S_sra and N_sra from Step 1 (Stopping Rule algorithm) are used again in Step 3.
...
...
DKL.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef DKL_H_
#define DKL_H_
...
...
DNFCUSP.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#include <iostream>
...
...
DNFCUSP.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef DNFCUSP_H_
#define DNFCUSP_H_
...
...
DNFCUSP_main.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#include <iostream>
#include <string>
#include "Timers.h"
...
...
DNFDKL.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#include <vector>
#include "DNFDKL.h"
...
...
DNFDKL.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef DNFDKL_H_
#define DNFDKL_H_
...
...
DNFDKLM.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#include <vector>
#include "DNFDKLM.h"
...
...
DNFDKLM.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef DNFDKLM_H_
#define DNFDKLM_H_
...
...
DNFDKLNaive.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#include <vector>
#include "DNFDKLNaive.h"
...
...
DNFDKLNaive.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef DNFDKLNaive_H_
#define DNFDKLNaive_H_
...
...
DNFFormula.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef DNF_FORMULA_H
#define DNF_FORMULA_H
...
...
DNFKLM.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#include <vector>
#include "DNFKLM.h"
...
...
DNFKLM.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef DNFKLM_H_
#define DNFKLM_H_
...
...
DNFKLMCUSP.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#include "DNFKLMCUSP.h"
#include "DNFParser.h"
#include "Timers.h"
...
...
DNFKLMCUSP.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef DNFKLMCUSP_H_
#define DNFKLMCUSP_H_
...
...
DNFKLMCUSP_main.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#include <iostream>
#include <string>
#include "Timers.h"
...
...
DNFParser.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
//#include <string>
#include <algorithm>
#include "DNFParser.h"
...
...
DNFParser.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef DNFPARSER_H_
#define DNFPARSER_H_
...
...
DNFUpperBound.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef DNFUPPERBOUND_H_
#define DNFUPPERBOUND_H_
...
...
ExactCount.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#include <iostream>
#include <vector>
#include <string>
...
...
ExactCount.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef EXACTCOUNT_H_
#define EXACTCOUNT_H_
...
...
Gray.cpp
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Based on algorithm H in "Art of Computer Programming" by Don Knuth
*/
//#include <stdlib>
#include "Gray.h"
...
...
Gray.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef GRAY_H_
#define GRAY_H_
...
...
Hash.h
View file @
d74d4c4f
/*
* This file is part of Approximate DNF-Counting Suite.
* Copyright (c) 2018, Kuldeep S. Meel, Aditya A. Shrotri, Moshe Y. Vardi
*
Approximate DNF-Counting Suite 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.
Approximate DNF-Counting Suite 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 Approximate DNF-Counting Suite. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef HASH_H_