From 9eb9c34645fcece619499ce8effe5dc3526134bc Mon Sep 17 00:00:00 2001 From: zhang zhihao Date: Sun, 13 Nov 2022 10:56:50 +0000 Subject: [PATCH] Upload New File --- include/CSS.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 include/CSS.h diff --git a/include/CSS.h b/include/CSS.h new file mode 100644 index 0000000..359d65f --- /dev/null +++ b/include/CSS.h @@ -0,0 +1,36 @@ +#pragma once +//#ifndef _CSS_H +//#define _CSS_H +#include "../init/params.h" + +#define rep(i,a,n) for(int i=a;i<=n;i++) +using namespace std; +class CSS +{ + private: + int head[M+10],Next[M+10],M2,K; + struct node {int wz; string ID;} ID_index[M+10]; + int R[MAX_MEM+10],Counter_Array[MAX_MEM+10],m,Last; + int Value_Index[MAX_MEM+10]; + BOBHash32 * bobhash; + public: + CSS(int M2,int K); + void clear(); + int Hash(string ST); + int Find(string x); + void Change(int x,int y,int z); + void Change(int x,int y,int z,string a); + void Insert_Hash(int x,string y,int z); + void Delete(int x,int y); + void Insert(string x); + struct Node {string x; int y;} q[MAX_MEM+10]; + static int cmp(Node i,Node j) {return i.y>j.y;} + void work(); + pair Query(int k); + // ~CSS(); + +}; + + + +//#endif