#define NULL 0
template<class T>
class bloom
{
private:
bool *key={0};
int *(random)(T);
T *str={0};
void bloomm()
{
int **a={0};
for(int i=0;str[i];i++)
a=random(str[i]);
for(int j=0;a[j][0];j++)
for(int k=0;a[j][k];k++)
key[a[j][k]]=1;
}
public:
bool *io(int *(randomm)(T)=NULL,T *strg={0})
{
random=*randomm;
for(int i=0;strg[i];i++)
str[i]=strg[i];
bloomm();
return key;
}
};
bloom
最新推荐文章于 2023-07-20 17:11:26 发布