# Application and Analysis of Hypergraph Association Rule Redundancy Algorithm in Data Mining

Authors: Huanli Pang; Lianzhe Zhou
Journal: Mobile Information Systems
 (2022)

---

## Abstract

In order to realize “from individual data research to data system research” and “from passive data verification to active discovery,” this study proposes a hypergraph-based association rule redundancy processing algorithm in data mining. This study introduces the concepts of hypergraph and system, explores the establishment of hypergraph on a three-dimensional matrix model, and adopts a new hyperedge definition method according to the characteristics of big data and the concept of the system, which improves the ability to deal with problems; the association rules are transformed into a directed hypergraph, and the adjacency matrix is redefined. The detection of redundancy and loops is transformed into the processing of connected blocks and cycles in the hypergraph. The experimental results show that two UCI datasets were selected, namely, the balloons dataset and the shuttle landing control dataset, in which the minimum support and minimum confidence of the balloons dataset are both 5%. The dataset has 4 attributes, and 18 association rules are obtained through the Aprior algorithm. Although the running time of the coevolution algorithm is slightly longer than that of the other two global optimization algorithms, the running time is completely within the acceptable range. Moreover, due to the effective introduction of the idea of coevolution, compared with the use of the other two algorithms for association rule mining, it not only has a better mining quality but also has a significant advantage in the ability to jump out of the local optimal solution, realizing the search of high-quality association rules in high-dimensional datasets.Conclusion. This model provides a new idea and method for the redundant processing of association rules.


---

## Body

## 1. Introduction

The Internet of things, cloud computing, and other information technologies are updating day by day and constantly integrated with the human world, economy, politics, military, scientific research, life, and other fields. The speed of data generation is rapid, and the amount of data is increasing day by day, giving birth to a huge amount of data [1]. Data visualization aims to express data clearly and effectively through a graphical representation and uses visualization to find data connections that are not easy to observe in the original data. Information visualization is conducive to enhancing users’ understanding of high-dimensional and large-scale data and plays an important role in association rule mining, recognition, and understanding. As an important method of knowledge discovery and pattern recognition, association rule mining aims to find valuable relationships in the form of if then. Association rule visualization is an indispensable subset of association rule research. Its main goal is to display data and help users with insight into the results of association rule mining.Data mining can explore the hidden rules in data and give full play to the value of data. Association rule mining can extract potential and valuable frequent patterns or relationships between attributes from data [2]. Text can clearly and intuitively show frequent patterns and related relationships, but due to the limited cognitive ability of users, the value of association rule mining cannot be fully reflected. Hypergraphs are widely used in many fields of information science. Previous information visualization and visual analysis techniques mainly focused on the simple binary information between data objects. However, the research found that multiple relationships can more natural express the internal relationships and patterns hidden in information. A hypergraph is a generalization of ordinary graphs in a topological structure, and it can intuitively show multivariate relationships [3]. This also provides strong conditions and theoretical support for the visualization of association rules. The hypergraph model combines the advantages of hypergraph and directed graph and can be used for a visual representation of association rules. Nodes in the graph represent data items, and edges represent association relationships. The support and confidence of rules can be expressed by different values and colors.


## 2. Literature Review

Khan et al. proposed a big data entity recognition algorithm based on a graph, which maps high-dimensional data relationships in the graph, where the edge represents some data relationships, and the weight on the edge represents the near degree of association between items. This method avoids the explicit calculation of the degree of association between high-dimensional data and has made corresponding progress in the reduction of high-dimensional data [4]. Skuratovskii et al. proposed the concept of neighborhood knowledge granularity from the perspective of granular computing to evaluate the granulation ability for high-dimensional data features and combined it with neighborhood dependency as a heuristic function for data attribute reduction [5]. Baert et al. analyzed the concept of information granularity and granularity division for the granularity selection of characteristic attributes of high-dimensional data systems, accurately reflected the roughness of data dimensions in decision-making systems, and made up for the defect of reduction based on domain attributes only when high-dimensional data are granulated in a big data environment [6]. Shekhawat et al. proposed to define neighborhood complementary entropy and neighborhood complementary conditional entropy through analytical simulation and replacement of information particles, so as to obtain nonmonotonic high-dimensional data attribute granulation and nonmonotonic high-dimensional data attribute reduction. In the research process on high-dimensional data features, the above three algorithms ensure data value, accurately capture data features, and reduce data complexity. Therefore, how to preprocess high-dimensional data through granulation and accurately capture their data characteristics is a hot issue in high-dimensional data mining [7]. Elmanakhly et al. proposed the load balancing strategy of high-low frequency division and grouped the nodes evenly by estimating the number of tasks, to avoid the problems of data skew and overload [8]. Liu et al. proposed a TBLB algorithm, which combines node energy and node degree to form a load balance tree for path selection according to the path performance evaluation factor. The formation of the balance tree effectively balances the node load and greatly improves the node energy consumption [9]. Xiao et al. proposed the mrpropost algorithm, which gets the f-list of frequent 1-itemsets after the first MapReduce task is executed and constructs the PPC tree to mine the frequent itemsets of multiple computing nodes distributed on it. This process does not need to save the PPC tree in memory, which can not only quickly calculate the itemset support but also reduce the time and space consumption of the algorithm [10].In this study, a retarget-based hypergraph analysis based on a three-dimensional matrix model is used for project data analysis. The dataset measures the performance and feasibility of the model and the data mining algorithm according to it.


## 3. Research Methods

### 3.1. Hypergraph

The Knowledgebase is a knowledge base that uses semantic research to gather data from multiple sources to improve research efficiency. Knowing Atlas is an art form that contains many objects and elements in the real world and their relationships and is used to represent all objects and their relationships in the real world [11]. As shown in Table 1, the knowledge map can be divided into layer structure and data layer of the logical architecture phase.Table 1
Logical structure of knowledge map.
Logical structure levelPrimary coverageExampleMode layerData model of knowledge classConcept and relationshipData layerSpecific data informationFact tripletAlthough the knowledge map is widely used, the representation methods based on triples often oversimplify the complexity of the data stored in the knowledge map; especially, for hyper-relational data connecting two or more entities, the loss of high-order structure information will lead to the limitation of knowledge hypergraph representation and reasoning ability. Relevant work has proved that, in Freebase, more than 33.3% of entities and 61% of relationships cannot be represented by binary relationships. A knowledge hypergraph is a special kind of heterogeneous graph. In order to understand the characteristics of a knowledge hypergraph more clearly, we first study the representation of a heterogeneous hypergraph. According to its relevance to knowledge hypergraph, the representation method of knowledge hypergraph is further studied. Finally, a three-tier architecture of the knowledge hypergraph is proposed, which can effectively improve the reasoning ability and efficiency of the knowledge hypergraph. The definition, characteristics, and main tasks of hypergraph and correlation graph are shown in Table2. Where, V refers to the number of node types and E refers to the number of relationship types.Table 2
Definition of hypergraph and related graph.
Graph classificationDefinitionCharacteristicTaskIsomorphic graphH=V,E, where V represents the node set and E represents the relationship setTV=1,TE=1, its node and relationship type are single, which can only represent binary relationship dataLink prediction, node classification, and clusteringHeterogeneous graphH=V,E, where V represents the node set and E represents the relationship setTV+TE>2, which has more than one node and relationship, and can only represent binary relationship dataLink prediction, node classification, and clusteringHeterogeneous hypergraphH=V,E, where V represents the node set and E represents the relationship set; e∈E,ev1,v2,⋯,vn⊆V for any superedgeTV>1, its node types are diverse, which can represent hyper-relational data, and the relationship usually has no semanticsLink prediction, node classification, and clusteringKnowledge hypergraphH=V,E, where V represents the entity set and E represents the hyper-relational set; the basic unit is the hyper-relational fact facta = (e, 1, 2,..., n)TV>1,TE>1, with various types of entities and relationships; it can represent hyper-relational data and rich relational semanticsLink prediction and hyper-relational fact judgment


### 3.2. Redundancy Rule Detection

Let the association rulesR1:X⟶Y and R2:A⟶B. If A∪B⊆X∪Y and X⊆A are satisfied, the total number of redundant rules is 3Y−2Y−1, where Y is the number of items contained in the itemset Y.Theorem 1.
The theorem proves that, under the existing evaluation criteria, there will be a large number of redundant rules that can be deleted in the mining association rules, and it theoretically analyzes the total number of redundant rules [12, 13].Definition 1.
(association rule redundancy). Redundant rules can generally be divided into two forms: one is dependent rules; that is, if the conclusion of ruleXi is the same as that of rule Xj and while the premise of Xi is the sufficient condition of premise Xj, then Xj is redundant, and repeated rules can be regarded as a special case of dependent rules [14]. The second is the repeated path rule. If there are selectors Xi and Xj in the rule base and there are at least two paths between Xi and Xj, it can be determined that there are redundant rules.
Dependent rules can be represented by rules (1) and (2):(1)X2⟶X4,(2)X2X3⟶X4.
It can be seen from rules (1) and (2) that the subsequent items of the two rules are the same, and the previous item has an intersection, so we think that rule (2) is a redundant rule; then, delete rule (2) and retain rule (1); that is, retain the party with fewer children in the previous item, in which rules (1) and (2) become dependent rules.
Repeated path rules can be represented by rules (3) and (4):(3)X1⟶X2X3⟶X4,(4)X1⟶X5⟶X4.
According to rules (3) and (4), there are two paths from X1 to X4. We think that the path is repeated, and delete one of them.


### 3.3. Directed Hypergraph Representation of Association Rules

In a directed hypergraph, the directed hyperedgee∈E is defined as an ordered pair composed of head node He and tail node Te, and He and Te are subsets of vertex set V; that is, it can be composed of a set of multiple vertices. This feature is conducive to the representation of association rules as a directed hypergraph [15]. According to the correspondence between the head node He and the subsequent term of the association rule and the tail node Te and the previous term of the association rule, each association rule can be uniquely represented as a super edge in the directed hypergraph.The form of association rules obtained in practice isx1x2…xm⇒y1y2…yn; that is, the first item AnteR is a set composed of multiple items, and the second item ConsR also contains multiple items. We define the rule that the latter item contains only one item as a simple rule and the rule that the latter item contains multiple items as a composite rule. This project defines a directed super edge to represent an association rule. The front term of each association rule corresponds to the head node of a directed hypergraph, and the rear term of the association rule corresponds to the tail node of the same directed hypergraph. There are multiple head nodes and tail nodes for each directed super edge, so the composite rule is successfully represented.This study adopts a spanning tree-based classification method to remove association rule redundancy. This is a new redundancy check method for association rules, which can effectively check the redundant rules, subordinate rules, and duplicate path rules. Since the adjacency matrix of the directed hypergraph is mainly used in simple graphs and the directed hypergraph we want to use here has composite points, which makes the composite rules only represented by the directed hypergraph, the adjacency matrix must be redefined. A spatial database is integrated with spatial relational data and object-relational data to realize a database of spatial data. The generation process of a spatial database includes the logical structure design of the database and the integrated storage of spatial data. Among them, the logical structure design of the database uses the classic E-R (entity connection) diagram to describe the real geographical world, and the number of paths between layers is proportional to the number of data attribute features. The specific design is shown in Figure1.Figure 1
E-R model between layers.


### 3.4. Graphic Representation and Processing of Redundancy Rules

The adjacency matrix of a hypergraph expression completely defines the relationships of the vertices in figures. The adjacency matrix of an expressed hypergraph based on organizational rules describes the interrelationships of the objects of organizational policies. Retrieval can be accomplished according to the information hypergraphs according to the definition of redundancy rules in Definition1 and related items of the diagram.Definition 2.
(road). Let graphG=VG,EG; its path is a finite nonempty sequence W=v0e1v1e2⋯ekvk, that is, the alternating sequence of vertices and edges, where ei∈EG and vj∈VG, where ei is associated with vi−1 and vi, respectively, 1≤i≤k,0≤j≤k, which is recorded as ν0,νk path, called vertex ν0, νk are the starting point and end point of path W, respectively, v1,v2,…,vk−1 is the inner vertex of path W, and k is the length of W. If e1,e2,…,ek in path W is different from each other, it is called trace. If v0,v1,v2,…,vk−1,vk in trace W is different from each other, it is called a path. If the starting point and ending points of a path (trace and road) are the same, it is called a closed path (closed trace and closed circuit). Closed trace is also called circle [16].
From the definition in graph theory, we found that, to realize the processing of redundant rules in a directed hypergraph based on association rules, it can be transformed into discovering connected blocks in the hypergraph and transforming it into a spanning tree [17]. Because each edge in the directed hypergraph represents an association rule and when the connected graph becomes a spanning tree, the edge needs to be deleted, this edge is the redundant rule in the association rule. Reduction of redundant rules:(1)
IfEi∩Ej≠0, called the associated super edge, then there is the following formula:(5)Ei∩Ej=1.(2)
If condition (1) is true and Ei≠2, there must be the following formula:(6)Ej≠2.
Then, hypergraphH=X,E has a spanning hyper tree T.Lemma 1.
Let the hypergraphH have n vertices, m hyperedges, and c connected branches. If and only if the following equation ∑i=1mei−1=n−c exists, H does not contain a superloop [18].The bipartite graph corresponding to hypergraphH = (V, E) refers to the vertex set V and hyperedge set E of h as vertex sets. When vi∈ei in H, vertex vi and vertex ei in the bipartite graph are edge connected. The bipartite graph corresponding to H is represented by G<H>. Figures 2(a) and 2(b) show a hypergraph and its corresponding bipartite graph.We get the number of connected blocks contained in the directed hypergraph and the location of the connected blocks where each point is located. On this basis, we must perform spanning tree processing on each connected block. Delete redundant rules by obtaining the spanning tree.Figure 2
Hypergraph and its corresponding bipartite graph. (a) Hypergraph. (b) Divided into two pictures.
(a)(b)


#### 3.4.1. Algorithm to Get Spanning Tree

At present, there are generally two methods to find the spanning tree of a connected graph: the ring-breaking method and the ring-avoiding method. The so-called loop breaking method is to break all loops in a connected graph, and the remaining connected graph without loops is a spanning tree of the original graph. This algorithm is called the “loop breaking method.” Take an arbitrary edgee1 in graph G, find an edge e2 that does not form a loop with e1, and then find an edge e3 that does not form a loop with e2,e3. This continues until the process cannot be carried out. At this time, the obtained graph G is a spanning tree. This algorithm is called the “circle avoiding method.” According to the meaning of the hypergraph we generated, each hyperedge represents an association rule. So, obviously, we should use the broken circle method.Input the adjacency matrix of the connected block and get an adjacency matrix of the spanning tree. By restoring the adjacency matrix of the spanning tree, we can eliminate the redundancy of the association rules. In practice, we find that there is often more than one spanning tree of a connected graph. At the same time, this will present a problem; that is, in the obtained rules, the rules that people are interested in and think are important may be deleted. In order to solve this problem, we give a certain weight to the more important association rules. Reflected in the graph is to give weight to each edge. Combined with the current algorithm, we give a smaller weight to the edge corresponding to the more important association rules and a larger weight to the unimportant and uninterested association rules and then use the prim algorithm to calculate the minimum spanning tree.Definition 3.
(minimum spanning tree). In figureH=V,E, u,v represents the edge-connecting vertex u and vertex v, that is, u,v∈E, and Wu,vrepresents the weight of this edge. If there is a subset of T as E, that is, T⊆E and acyclic graph, making WT of WT=∑u,v∈TWu,v minimum, this T is called the minimum spanning tree of H. The minimum spanning tree is actually an abbreviation of the minimum weight spanning tree.


#### 3.4.2. Basic Idea of Prim Algorithm

Starting from a vertex of the connected graphH=V,E, select the edge u0,v with the smallest weight associated with it and add its vertices to the vertex set U of the spanning tree. In each subsequent step, select the edge u,v with the smallest weight from the edges where one vertex is in U and the other vertex is not in U and add its vertices to the set U. In this way, until all vertices in the graph are added to the vertex set u of the spanning tree, a minimum spanning tree is obtained.Through practice, it has been found that the edge set of the minimum spanning tree is sometimes different. We introduce weight to deal with the minimum spanning tree, which plays a corresponding protective role in the preservation of important and interesting rules.


### 3.5. Algorithm Flow

Figure3 shows the outline of the tree spanning plan in this study to eliminate the recurrence of the organizational policy. The special steps are as follows.(1)
Analyze test data, create aggregation rules, use hypergraphs to represent participatory rules, and revise and obtain its integers(2)
The preprocessed adjacency matrix is obtained by subtracting the algorithm [16, 19](3)
Unspanned and linked spanning trees are obtained by the spanning tree algorithm(4)
The adjacency matrix of the surrounding tree is reconstructed by the organizational law, and its final completion is possibleFigure 3
Flowchart of association rule redundancy detection.This study proposes an algorithm to remove subordinate rules by redefining the adjacency matrix. Each association rule is defined as an edge of a directed hypergraph. According to the previous section, the redefining adjacency matrix is obtained. The columns of the matrix represent the subsequent terms of the association rule. The flowchart of the algorithm is shown in Figure4. After this algorithm, all the subordinate rules in the redundant rules can be deleted, and the preprocessed adjacency matrix can be obtained.Figure 4
Flowchart of removing dependent rules.


## 3.1. Hypergraph

The Knowledgebase is a knowledge base that uses semantic research to gather data from multiple sources to improve research efficiency. Knowing Atlas is an art form that contains many objects and elements in the real world and their relationships and is used to represent all objects and their relationships in the real world [11]. As shown in Table 1, the knowledge map can be divided into layer structure and data layer of the logical architecture phase.Table 1
Logical structure of knowledge map.
Logical structure levelPrimary coverageExampleMode layerData model of knowledge classConcept and relationshipData layerSpecific data informationFact tripletAlthough the knowledge map is widely used, the representation methods based on triples often oversimplify the complexity of the data stored in the knowledge map; especially, for hyper-relational data connecting two or more entities, the loss of high-order structure information will lead to the limitation of knowledge hypergraph representation and reasoning ability. Relevant work has proved that, in Freebase, more than 33.3% of entities and 61% of relationships cannot be represented by binary relationships. A knowledge hypergraph is a special kind of heterogeneous graph. In order to understand the characteristics of a knowledge hypergraph more clearly, we first study the representation of a heterogeneous hypergraph. According to its relevance to knowledge hypergraph, the representation method of knowledge hypergraph is further studied. Finally, a three-tier architecture of the knowledge hypergraph is proposed, which can effectively improve the reasoning ability and efficiency of the knowledge hypergraph. The definition, characteristics, and main tasks of hypergraph and correlation graph are shown in Table2. Where, V refers to the number of node types and E refers to the number of relationship types.Table 2
Definition of hypergraph and related graph.
Graph classificationDefinitionCharacteristicTaskIsomorphic graphH=V,E, where V represents the node set and E represents the relationship setTV=1,TE=1, its node and relationship type are single, which can only represent binary relationship dataLink prediction, node classification, and clusteringHeterogeneous graphH=V,E, where V represents the node set and E represents the relationship setTV+TE>2, which has more than one node and relationship, and can only represent binary relationship dataLink prediction, node classification, and clusteringHeterogeneous hypergraphH=V,E, where V represents the node set and E represents the relationship set; e∈E,ev1,v2,⋯,vn⊆V for any superedgeTV>1, its node types are diverse, which can represent hyper-relational data, and the relationship usually has no semanticsLink prediction, node classification, and clusteringKnowledge hypergraphH=V,E, where V represents the entity set and E represents the hyper-relational set; the basic unit is the hyper-relational fact facta = (e, 1, 2,..., n)TV>1,TE>1, with various types of entities and relationships; it can represent hyper-relational data and rich relational semanticsLink prediction and hyper-relational fact judgment


## 3.2. Redundancy Rule Detection

Let the association rulesR1:X⟶Y and R2:A⟶B. If A∪B⊆X∪Y and X⊆A are satisfied, the total number of redundant rules is 3Y−2Y−1, where Y is the number of items contained in the itemset Y.Theorem 1.
The theorem proves that, under the existing evaluation criteria, there will be a large number of redundant rules that can be deleted in the mining association rules, and it theoretically analyzes the total number of redundant rules [12, 13].Definition 1.
(association rule redundancy). Redundant rules can generally be divided into two forms: one is dependent rules; that is, if the conclusion of ruleXi is the same as that of rule Xj and while the premise of Xi is the sufficient condition of premise Xj, then Xj is redundant, and repeated rules can be regarded as a special case of dependent rules [14]. The second is the repeated path rule. If there are selectors Xi and Xj in the rule base and there are at least two paths between Xi and Xj, it can be determined that there are redundant rules.
Dependent rules can be represented by rules (1) and (2):(1)X2⟶X4,(2)X2X3⟶X4.
It can be seen from rules (1) and (2) that the subsequent items of the two rules are the same, and the previous item has an intersection, so we think that rule (2) is a redundant rule; then, delete rule (2) and retain rule (1); that is, retain the party with fewer children in the previous item, in which rules (1) and (2) become dependent rules.
Repeated path rules can be represented by rules (3) and (4):(3)X1⟶X2X3⟶X4,(4)X1⟶X5⟶X4.
According to rules (3) and (4), there are two paths from X1 to X4. We think that the path is repeated, and delete one of them.


## 3.3. Directed Hypergraph Representation of Association Rules

In a directed hypergraph, the directed hyperedgee∈E is defined as an ordered pair composed of head node He and tail node Te, and He and Te are subsets of vertex set V; that is, it can be composed of a set of multiple vertices. This feature is conducive to the representation of association rules as a directed hypergraph [15]. According to the correspondence between the head node He and the subsequent term of the association rule and the tail node Te and the previous term of the association rule, each association rule can be uniquely represented as a super edge in the directed hypergraph.The form of association rules obtained in practice isx1x2…xm⇒y1y2…yn; that is, the first item AnteR is a set composed of multiple items, and the second item ConsR also contains multiple items. We define the rule that the latter item contains only one item as a simple rule and the rule that the latter item contains multiple items as a composite rule. This project defines a directed super edge to represent an association rule. The front term of each association rule corresponds to the head node of a directed hypergraph, and the rear term of the association rule corresponds to the tail node of the same directed hypergraph. There are multiple head nodes and tail nodes for each directed super edge, so the composite rule is successfully represented.This study adopts a spanning tree-based classification method to remove association rule redundancy. This is a new redundancy check method for association rules, which can effectively check the redundant rules, subordinate rules, and duplicate path rules. Since the adjacency matrix of the directed hypergraph is mainly used in simple graphs and the directed hypergraph we want to use here has composite points, which makes the composite rules only represented by the directed hypergraph, the adjacency matrix must be redefined. A spatial database is integrated with spatial relational data and object-relational data to realize a database of spatial data. The generation process of a spatial database includes the logical structure design of the database and the integrated storage of spatial data. Among them, the logical structure design of the database uses the classic E-R (entity connection) diagram to describe the real geographical world, and the number of paths between layers is proportional to the number of data attribute features. The specific design is shown in Figure1.Figure 1
E-R model between layers.


## 3.4. Graphic Representation and Processing of Redundancy Rules

The adjacency matrix of a hypergraph expression completely defines the relationships of the vertices in figures. The adjacency matrix of an expressed hypergraph based on organizational rules describes the interrelationships of the objects of organizational policies. Retrieval can be accomplished according to the information hypergraphs according to the definition of redundancy rules in Definition1 and related items of the diagram.Definition 2.
(road). Let graphG=VG,EG; its path is a finite nonempty sequence W=v0e1v1e2⋯ekvk, that is, the alternating sequence of vertices and edges, where ei∈EG and vj∈VG, where ei is associated with vi−1 and vi, respectively, 1≤i≤k,0≤j≤k, which is recorded as ν0,νk path, called vertex ν0, νk are the starting point and end point of path W, respectively, v1,v2,…,vk−1 is the inner vertex of path W, and k is the length of W. If e1,e2,…,ek in path W is different from each other, it is called trace. If v0,v1,v2,…,vk−1,vk in trace W is different from each other, it is called a path. If the starting point and ending points of a path (trace and road) are the same, it is called a closed path (closed trace and closed circuit). Closed trace is also called circle [16].
From the definition in graph theory, we found that, to realize the processing of redundant rules in a directed hypergraph based on association rules, it can be transformed into discovering connected blocks in the hypergraph and transforming it into a spanning tree [17]. Because each edge in the directed hypergraph represents an association rule and when the connected graph becomes a spanning tree, the edge needs to be deleted, this edge is the redundant rule in the association rule. Reduction of redundant rules:(1)
IfEi∩Ej≠0, called the associated super edge, then there is the following formula:(5)Ei∩Ej=1.(2)
If condition (1) is true and Ei≠2, there must be the following formula:(6)Ej≠2.
Then, hypergraphH=X,E has a spanning hyper tree T.Lemma 1.
Let the hypergraphH have n vertices, m hyperedges, and c connected branches. If and only if the following equation ∑i=1mei−1=n−c exists, H does not contain a superloop [18].The bipartite graph corresponding to hypergraphH = (V, E) refers to the vertex set V and hyperedge set E of h as vertex sets. When vi∈ei in H, vertex vi and vertex ei in the bipartite graph are edge connected. The bipartite graph corresponding to H is represented by G<H>. Figures 2(a) and 2(b) show a hypergraph and its corresponding bipartite graph.We get the number of connected blocks contained in the directed hypergraph and the location of the connected blocks where each point is located. On this basis, we must perform spanning tree processing on each connected block. Delete redundant rules by obtaining the spanning tree.Figure 2
Hypergraph and its corresponding bipartite graph. (a) Hypergraph. (b) Divided into two pictures.
(a)(b)


### 3.4.1. Algorithm to Get Spanning Tree

At present, there are generally two methods to find the spanning tree of a connected graph: the ring-breaking method and the ring-avoiding method. The so-called loop breaking method is to break all loops in a connected graph, and the remaining connected graph without loops is a spanning tree of the original graph. This algorithm is called the “loop breaking method.” Take an arbitrary edgee1 in graph G, find an edge e2 that does not form a loop with e1, and then find an edge e3 that does not form a loop with e2,e3. This continues until the process cannot be carried out. At this time, the obtained graph G is a spanning tree. This algorithm is called the “circle avoiding method.” According to the meaning of the hypergraph we generated, each hyperedge represents an association rule. So, obviously, we should use the broken circle method.Input the adjacency matrix of the connected block and get an adjacency matrix of the spanning tree. By restoring the adjacency matrix of the spanning tree, we can eliminate the redundancy of the association rules. In practice, we find that there is often more than one spanning tree of a connected graph. At the same time, this will present a problem; that is, in the obtained rules, the rules that people are interested in and think are important may be deleted. In order to solve this problem, we give a certain weight to the more important association rules. Reflected in the graph is to give weight to each edge. Combined with the current algorithm, we give a smaller weight to the edge corresponding to the more important association rules and a larger weight to the unimportant and uninterested association rules and then use the prim algorithm to calculate the minimum spanning tree.Definition 3.
(minimum spanning tree). In figureH=V,E, u,v represents the edge-connecting vertex u and vertex v, that is, u,v∈E, and Wu,vrepresents the weight of this edge. If there is a subset of T as E, that is, T⊆E and acyclic graph, making WT of WT=∑u,v∈TWu,v minimum, this T is called the minimum spanning tree of H. The minimum spanning tree is actually an abbreviation of the minimum weight spanning tree.


### 3.4.2. Basic Idea of Prim Algorithm

Starting from a vertex of the connected graphH=V,E, select the edge u0,v with the smallest weight associated with it and add its vertices to the vertex set U of the spanning tree. In each subsequent step, select the edge u,v with the smallest weight from the edges where one vertex is in U and the other vertex is not in U and add its vertices to the set U. In this way, until all vertices in the graph are added to the vertex set u of the spanning tree, a minimum spanning tree is obtained.Through practice, it has been found that the edge set of the minimum spanning tree is sometimes different. We introduce weight to deal with the minimum spanning tree, which plays a corresponding protective role in the preservation of important and interesting rules.


## 3.4.1. Algorithm to Get Spanning Tree

At present, there are generally two methods to find the spanning tree of a connected graph: the ring-breaking method and the ring-avoiding method. The so-called loop breaking method is to break all loops in a connected graph, and the remaining connected graph without loops is a spanning tree of the original graph. This algorithm is called the “loop breaking method.” Take an arbitrary edgee1 in graph G, find an edge e2 that does not form a loop with e1, and then find an edge e3 that does not form a loop with e2,e3. This continues until the process cannot be carried out. At this time, the obtained graph G is a spanning tree. This algorithm is called the “circle avoiding method.” According to the meaning of the hypergraph we generated, each hyperedge represents an association rule. So, obviously, we should use the broken circle method.Input the adjacency matrix of the connected block and get an adjacency matrix of the spanning tree. By restoring the adjacency matrix of the spanning tree, we can eliminate the redundancy of the association rules. In practice, we find that there is often more than one spanning tree of a connected graph. At the same time, this will present a problem; that is, in the obtained rules, the rules that people are interested in and think are important may be deleted. In order to solve this problem, we give a certain weight to the more important association rules. Reflected in the graph is to give weight to each edge. Combined with the current algorithm, we give a smaller weight to the edge corresponding to the more important association rules and a larger weight to the unimportant and uninterested association rules and then use the prim algorithm to calculate the minimum spanning tree.Definition 3.
(minimum spanning tree). In figureH=V,E, u,v represents the edge-connecting vertex u and vertex v, that is, u,v∈E, and Wu,vrepresents the weight of this edge. If there is a subset of T as E, that is, T⊆E and acyclic graph, making WT of WT=∑u,v∈TWu,v minimum, this T is called the minimum spanning tree of H. The minimum spanning tree is actually an abbreviation of the minimum weight spanning tree.


## 3.4.2. Basic Idea of Prim Algorithm

Starting from a vertex of the connected graphH=V,E, select the edge u0,v with the smallest weight associated with it and add its vertices to the vertex set U of the spanning tree. In each subsequent step, select the edge u,v with the smallest weight from the edges where one vertex is in U and the other vertex is not in U and add its vertices to the set U. In this way, until all vertices in the graph are added to the vertex set u of the spanning tree, a minimum spanning tree is obtained.Through practice, it has been found that the edge set of the minimum spanning tree is sometimes different. We introduce weight to deal with the minimum spanning tree, which plays a corresponding protective role in the preservation of important and interesting rules.


## 3.5. Algorithm Flow

Figure3 shows the outline of the tree spanning plan in this study to eliminate the recurrence of the organizational policy. The special steps are as follows.(1)
Analyze test data, create aggregation rules, use hypergraphs to represent participatory rules, and revise and obtain its integers(2)
The preprocessed adjacency matrix is obtained by subtracting the algorithm [16, 19](3)
Unspanned and linked spanning trees are obtained by the spanning tree algorithm(4)
The adjacency matrix of the surrounding tree is reconstructed by the organizational law, and its final completion is possibleFigure 3
Flowchart of association rule redundancy detection.This study proposes an algorithm to remove subordinate rules by redefining the adjacency matrix. Each association rule is defined as an edge of a directed hypergraph. According to the previous section, the redefining adjacency matrix is obtained. The columns of the matrix represent the subsequent terms of the association rule. The flowchart of the algorithm is shown in Figure4. After this algorithm, all the subordinate rules in the redundant rules can be deleted, and the preprocessed adjacency matrix can be obtained.Figure 4
Flowchart of removing dependent rules.


## 4. Result Analysis

### 4.1. Verification Results

In this study, the spanning tree-based classification method to eliminate the redundancy of connection policies consists of three modules: the redefine adjacency matrix module, the delete dependency rule module, and the spanning tree module. The first two modules are used in VB programming, while the spanning tree module is used in MATLAB. The special points are shown in Figure5.Figure 5
Module composition of classification redundancy removal method.After removing the coding algorithm and the spanning tree algorithm, we obtain a tree spanning without connection. The special procedure of the spanning tree algorithm and hypergraph instructions is shown in Figure6. It can be seen from Figure 6 that the preprocessed adjacency matrix (the result of the dependency removal algorithm) yields the total deleted adjacency matrix. The redundant, on the right-hand side, shows the variation of the hypergraph indicator before and after the spanning tree algorithm [17, 20].Figure 6
Matlab simulation and its directed hypergraph.Through the method introduced in this study, the redundant rules are removed accurately and quickly in both datasets. The specific results are shown in Table3.Table 3
Results of removing redundant rules.
BalloonsShuttle landing controlTotal association rules1815Subordinate rule89Duplicate path rule72Number of redundant rules removed1511Number of remaining association rules34


### 4.2. Experiment

The experimental data studied in this study came from the data obtained from the special task project of Humanities and Social Sciences Research of the Ministry of Education, “Research on building a scientific and complete network culture construction and management system of colleges and universities,” the special project of moral education innovation and development of a city, “analysis of the influence factors and validity of social environment on young students,” and the project of moral education innovation and development of a city, “large-scale special research on contemporary universities in the Internet environment.” The purpose of this project is to understand whether the current Internet environment impacts contemporary college students’ life, learning, ideology, especially their outlooks on life, world outlook, and values, and strive to determine the major influencing factors that affect young students, to provide decision support for constructing network culture in colleges and universities [21]. The data consisted of 63 questions and 30143 valid records. The specific questionnaires include the following: A1∼A7 are basic personal information, T1∼T23 involve college students’ habits of surfing the Internet (online time, online purpose, habits of going to social networking sites, views on hot online events, etc.), and T24∼T29 are college students’ political attitude and learning attitude. We have preprocessed this data, established a three-dimensional matrix model, and done a lot of data analysis. Some examples of data analysis are listed below.


#### 4.2.1. Basic Statistical Analysis (Sample)

T1: how long do you spend online every day?As shown in Figure7, there are 29933 cases of effective data in this part, and 0.7% of this item is missing. For the problem of young students’ online time, 3608 students (11.97%) spend less than 1 hour online every day, 8986 students (29.81%) spend between 1-2 hours online every day, 11735 students (38.93%) spend between 2–4 hours online every day, 4370 students (14.5%) spend between 4–8 hours online every day, and 1234 students (4.09%) spend more than 8 hours online every day.Figure 7
Sample of basic statistical analysis.According to the test statistics,χ2 = 12177.003, p=0<0.05, reaching a significant level, indicating that there is a significant difference in the number of times the five options in “daily online time” are checked by the sample.


#### 4.2.2. Crosstab Analysis (Example)

This case studies whether there is a significant difference in the percentage of choices the five options in “daily online time” among young students of different genders. The statistical results are shown in Figure8. According to the Chi-square test statistics, the Pearson Chi-square value is 2.368, the degree of freedom is 3, and the significance probability value p=0<0.05, reached a significant level, indicating that there is a significant difference between the percentages of at least one choice time of young students of different genders in the five T1 options.Figure 8
Example of Crosstab analysis.


#### 4.2.3. Logistic Regression Analysis (Sample)

In this case, t26.1 “contemporary young students should take realizing the great rejuvenation of the Chinese nation as their own responsibility” as the dependent variable, A1, A4, A5, A6, A7, and T4 “browsing the content of interest online” as the independent variables for logistic regression analysis.First, we test the likelihood ratio of each independent variable. Ifp=0<0.05, it means that the independent variable has statistical significance for the corresponding variable. From Table 4, we can see that A7 is “whether it is the only child,” and the p value of D option “science and technology trends” and I option “job hunting and employment” in T4 is greater than 0.05, indicating that A7, T4.D science and technology trends, and T4.I job hunting and employment have no influence on whether young students agree to “realize the great rejuvenation of the Chinese nation as their own responsibility.”Table 4
Example of logistic regression analysis.
Influence factorp valueA1 gender0A4 nationality0A5 political outlook0A6 home location0A7 is it an only child0.628T4.A current affairs and politics0T4.B economic finance0T4.C education and training0T4.D technology trends0.146T4.E game entertainment0.006T4.F sports events0.002T4.G emotional marriage0.007T4.H culture and art0.016T4.I job hunting and employment0.171


#### 4.2.4. Association Rule Analysis (Example)

In this example, the basic information (A1∼A7) and T1∼T23 are used as the antecedents of association rules, and T24∼T29 are used as the antecedents of association rules for association rule analysis. We set the support of association rules to 70% and the confidence to 90%, expecting to get high-quality rules and reduce the number of rules. Some rules we obtained are shown in Table5.Table 5
Example of association rule analysis.
ConsequentThe aforesaidSupport (%)Confidence (%)T28.4 = agreeT20 talk about news or interesting things that happen around you =Y70.89991.371T28.3 = agreeT20 talk about news or interesting things that happen around you =Y70.89991.353T28.3 = agreeT11 classmates and friends around =Y70.25890.452T28.4 = agreeT11 classmates and friends around =Y70.25890.339T28.3 = agreeT15 seek visual stimulation =N and T23 pretend to be someone else and make trouble = N and nationality = han nationality71.72190.222T28.4 = agreeT15 seek visual stimulation =N and T23 pretend to be someone else and make trouble = N and nationality = han nationality71.72190.148T28.3 = agreeT15 seek visual stimulation =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N75.94890.076T28.4 = agreeT23 pretend to be someone else and make trouble =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N77.14290.074T28.3 = agreeT23 pretend to be someone else and make trouble =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N77.14290.049T28.4 = agreePolitical outlook = masses and T12 I have experienced it, but I will never believe it again =N and T12 I hope online love can come to me = N70.23590.019T28.4 = agreeT15 seek visual stimulation =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N75.94890.01We take the basic information in A1–A7 and T1–T29 in the questionnaire as the antecedents of association rules and T1–T29 as the antecedents of association rules for association rule analysis. In order to get higher quality rules and reduce the number of redundant and loop rules as much as possible, because there are many rules, we set the support and confidence as high as possible. We set the support at 75% and the confidence at 85%. Taking some association rules in the results as examples, the specific explanations are as follows:(1) Young students who agree that “China must develop a low-carbon, green economy and take the path of sustainable development” and agree that “honesty, trustworthiness and doing what one says is the bottom line that everyone should abide by” the main topic of chatting with people online does not love “(support 78.436% and confidence 89.599%). (2) Young students who agree that “filial piety to parents and respect for teachers are natural” and agree that “honesty and trustworthiness and doing what one says are the bottom lines that everyone should abide by” will also agree with the view that “tolerance is a virtue” (82.258% support and 97.1% confidence).Through the interpretation of the mined association rules, we can find the important relationships and laws contained therein to provide a practical basis for enriching the theoretical research of young students’ education and promoting the cultural education of young students.It can be seen from Figure9 and Table 6 that although the running time of the coevolutionary algorithm is slightly longer than that of the other two global optimization algorithms, the running time is completely within an acceptable range. Moreover, due to the effective introduction of the idea of coevolution, compared with the use of the other two algorithms for association rule mining, it not only has better mining quality but also has a significant advantage in the ability to jump out of the local optimal solution, realizing the search of high-quality association rules in high-dimensional datasets.Figure 9
Comparison diagram of Co, GA, and PSO applied to research database.Table 6
Running time of Co, GA, and PSO applied to the research database.
AlgorithmRunning time (s)Co5946.13GA4601.43PSO3153.56After obtaining the association rules, we use the algorithm introduced above for redundancy processing. The experimental results are shown in Table7.Table 7
Test results of dataset.
DatasetNumber of rules to be detectedNumber of redundant rulesNumber of rules after processingSet A23617Set B716Set C983464Set D927As shown in Table7, it can be seen that the use of hypergraph-based redundancy and loop detection methods can reduce the release of redundancy and loop policy, without wasting the capital mining, and facilitate user selection and implementation.


## 4.1. Verification Results

In this study, the spanning tree-based classification method to eliminate the redundancy of connection policies consists of three modules: the redefine adjacency matrix module, the delete dependency rule module, and the spanning tree module. The first two modules are used in VB programming, while the spanning tree module is used in MATLAB. The special points are shown in Figure5.Figure 5
Module composition of classification redundancy removal method.After removing the coding algorithm and the spanning tree algorithm, we obtain a tree spanning without connection. The special procedure of the spanning tree algorithm and hypergraph instructions is shown in Figure6. It can be seen from Figure 6 that the preprocessed adjacency matrix (the result of the dependency removal algorithm) yields the total deleted adjacency matrix. The redundant, on the right-hand side, shows the variation of the hypergraph indicator before and after the spanning tree algorithm [17, 20].Figure 6
Matlab simulation and its directed hypergraph.Through the method introduced in this study, the redundant rules are removed accurately and quickly in both datasets. The specific results are shown in Table3.Table 3
Results of removing redundant rules.
BalloonsShuttle landing controlTotal association rules1815Subordinate rule89Duplicate path rule72Number of redundant rules removed1511Number of remaining association rules34


## 4.2. Experiment

The experimental data studied in this study came from the data obtained from the special task project of Humanities and Social Sciences Research of the Ministry of Education, “Research on building a scientific and complete network culture construction and management system of colleges and universities,” the special project of moral education innovation and development of a city, “analysis of the influence factors and validity of social environment on young students,” and the project of moral education innovation and development of a city, “large-scale special research on contemporary universities in the Internet environment.” The purpose of this project is to understand whether the current Internet environment impacts contemporary college students’ life, learning, ideology, especially their outlooks on life, world outlook, and values, and strive to determine the major influencing factors that affect young students, to provide decision support for constructing network culture in colleges and universities [21]. The data consisted of 63 questions and 30143 valid records. The specific questionnaires include the following: A1∼A7 are basic personal information, T1∼T23 involve college students’ habits of surfing the Internet (online time, online purpose, habits of going to social networking sites, views on hot online events, etc.), and T24∼T29 are college students’ political attitude and learning attitude. We have preprocessed this data, established a three-dimensional matrix model, and done a lot of data analysis. Some examples of data analysis are listed below.


### 4.2.1. Basic Statistical Analysis (Sample)

T1: how long do you spend online every day?As shown in Figure7, there are 29933 cases of effective data in this part, and 0.7% of this item is missing. For the problem of young students’ online time, 3608 students (11.97%) spend less than 1 hour online every day, 8986 students (29.81%) spend between 1-2 hours online every day, 11735 students (38.93%) spend between 2–4 hours online every day, 4370 students (14.5%) spend between 4–8 hours online every day, and 1234 students (4.09%) spend more than 8 hours online every day.Figure 7
Sample of basic statistical analysis.According to the test statistics,χ2 = 12177.003, p=0<0.05, reaching a significant level, indicating that there is a significant difference in the number of times the five options in “daily online time” are checked by the sample.


### 4.2.2. Crosstab Analysis (Example)

This case studies whether there is a significant difference in the percentage of choices the five options in “daily online time” among young students of different genders. The statistical results are shown in Figure8. According to the Chi-square test statistics, the Pearson Chi-square value is 2.368, the degree of freedom is 3, and the significance probability value p=0<0.05, reached a significant level, indicating that there is a significant difference between the percentages of at least one choice time of young students of different genders in the five T1 options.Figure 8
Example of Crosstab analysis.


### 4.2.3. Logistic Regression Analysis (Sample)

In this case, t26.1 “contemporary young students should take realizing the great rejuvenation of the Chinese nation as their own responsibility” as the dependent variable, A1, A4, A5, A6, A7, and T4 “browsing the content of interest online” as the independent variables for logistic regression analysis.First, we test the likelihood ratio of each independent variable. Ifp=0<0.05, it means that the independent variable has statistical significance for the corresponding variable. From Table 4, we can see that A7 is “whether it is the only child,” and the p value of D option “science and technology trends” and I option “job hunting and employment” in T4 is greater than 0.05, indicating that A7, T4.D science and technology trends, and T4.I job hunting and employment have no influence on whether young students agree to “realize the great rejuvenation of the Chinese nation as their own responsibility.”Table 4
Example of logistic regression analysis.
Influence factorp valueA1 gender0A4 nationality0A5 political outlook0A6 home location0A7 is it an only child0.628T4.A current affairs and politics0T4.B economic finance0T4.C education and training0T4.D technology trends0.146T4.E game entertainment0.006T4.F sports events0.002T4.G emotional marriage0.007T4.H culture and art0.016T4.I job hunting and employment0.171


### 4.2.4. Association Rule Analysis (Example)

In this example, the basic information (A1∼A7) and T1∼T23 are used as the antecedents of association rules, and T24∼T29 are used as the antecedents of association rules for association rule analysis. We set the support of association rules to 70% and the confidence to 90%, expecting to get high-quality rules and reduce the number of rules. Some rules we obtained are shown in Table5.Table 5
Example of association rule analysis.
ConsequentThe aforesaidSupport (%)Confidence (%)T28.4 = agreeT20 talk about news or interesting things that happen around you =Y70.89991.371T28.3 = agreeT20 talk about news or interesting things that happen around you =Y70.89991.353T28.3 = agreeT11 classmates and friends around =Y70.25890.452T28.4 = agreeT11 classmates and friends around =Y70.25890.339T28.3 = agreeT15 seek visual stimulation =N and T23 pretend to be someone else and make trouble = N and nationality = han nationality71.72190.222T28.4 = agreeT15 seek visual stimulation =N and T23 pretend to be someone else and make trouble = N and nationality = han nationality71.72190.148T28.3 = agreeT15 seek visual stimulation =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N75.94890.076T28.4 = agreeT23 pretend to be someone else and make trouble =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N77.14290.074T28.3 = agreeT23 pretend to be someone else and make trouble =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N77.14290.049T28.4 = agreePolitical outlook = masses and T12 I have experienced it, but I will never believe it again =N and T12 I hope online love can come to me = N70.23590.019T28.4 = agreeT15 seek visual stimulation =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N75.94890.01We take the basic information in A1–A7 and T1–T29 in the questionnaire as the antecedents of association rules and T1–T29 as the antecedents of association rules for association rule analysis. In order to get higher quality rules and reduce the number of redundant and loop rules as much as possible, because there are many rules, we set the support and confidence as high as possible. We set the support at 75% and the confidence at 85%. Taking some association rules in the results as examples, the specific explanations are as follows:(1) Young students who agree that “China must develop a low-carbon, green economy and take the path of sustainable development” and agree that “honesty, trustworthiness and doing what one says is the bottom line that everyone should abide by” the main topic of chatting with people online does not love “(support 78.436% and confidence 89.599%). (2) Young students who agree that “filial piety to parents and respect for teachers are natural” and agree that “honesty and trustworthiness and doing what one says are the bottom lines that everyone should abide by” will also agree with the view that “tolerance is a virtue” (82.258% support and 97.1% confidence).Through the interpretation of the mined association rules, we can find the important relationships and laws contained therein to provide a practical basis for enriching the theoretical research of young students’ education and promoting the cultural education of young students.It can be seen from Figure9 and Table 6 that although the running time of the coevolutionary algorithm is slightly longer than that of the other two global optimization algorithms, the running time is completely within an acceptable range. Moreover, due to the effective introduction of the idea of coevolution, compared with the use of the other two algorithms for association rule mining, it not only has better mining quality but also has a significant advantage in the ability to jump out of the local optimal solution, realizing the search of high-quality association rules in high-dimensional datasets.Figure 9
Comparison diagram of Co, GA, and PSO applied to research database.Table 6
Running time of Co, GA, and PSO applied to the research database.
AlgorithmRunning time (s)Co5946.13GA4601.43PSO3153.56After obtaining the association rules, we use the algorithm introduced above for redundancy processing. The experimental results are shown in Table7.Table 7
Test results of dataset.
DatasetNumber of rules to be detectedNumber of redundant rulesNumber of rules after processingSet A23617Set B716Set C983464Set D927As shown in Table7, it can be seen that the use of hypergraph-based redundancy and loop detection methods can reduce the release of redundancy and loop policy, without wasting the capital mining, and facilitate user selection and implementation.


## 4.2.1. Basic Statistical Analysis (Sample)

T1: how long do you spend online every day?As shown in Figure7, there are 29933 cases of effective data in this part, and 0.7% of this item is missing. For the problem of young students’ online time, 3608 students (11.97%) spend less than 1 hour online every day, 8986 students (29.81%) spend between 1-2 hours online every day, 11735 students (38.93%) spend between 2–4 hours online every day, 4370 students (14.5%) spend between 4–8 hours online every day, and 1234 students (4.09%) spend more than 8 hours online every day.Figure 7
Sample of basic statistical analysis.According to the test statistics,χ2 = 12177.003, p=0<0.05, reaching a significant level, indicating that there is a significant difference in the number of times the five options in “daily online time” are checked by the sample.


## 4.2.2. Crosstab Analysis (Example)

This case studies whether there is a significant difference in the percentage of choices the five options in “daily online time” among young students of different genders. The statistical results are shown in Figure8. According to the Chi-square test statistics, the Pearson Chi-square value is 2.368, the degree of freedom is 3, and the significance probability value p=0<0.05, reached a significant level, indicating that there is a significant difference between the percentages of at least one choice time of young students of different genders in the five T1 options.Figure 8
Example of Crosstab analysis.


## 4.2.3. Logistic Regression Analysis (Sample)

In this case, t26.1 “contemporary young students should take realizing the great rejuvenation of the Chinese nation as their own responsibility” as the dependent variable, A1, A4, A5, A6, A7, and T4 “browsing the content of interest online” as the independent variables for logistic regression analysis.First, we test the likelihood ratio of each independent variable. Ifp=0<0.05, it means that the independent variable has statistical significance for the corresponding variable. From Table 4, we can see that A7 is “whether it is the only child,” and the p value of D option “science and technology trends” and I option “job hunting and employment” in T4 is greater than 0.05, indicating that A7, T4.D science and technology trends, and T4.I job hunting and employment have no influence on whether young students agree to “realize the great rejuvenation of the Chinese nation as their own responsibility.”Table 4
Example of logistic regression analysis.
Influence factorp valueA1 gender0A4 nationality0A5 political outlook0A6 home location0A7 is it an only child0.628T4.A current affairs and politics0T4.B economic finance0T4.C education and training0T4.D technology trends0.146T4.E game entertainment0.006T4.F sports events0.002T4.G emotional marriage0.007T4.H culture and art0.016T4.I job hunting and employment0.171


## 4.2.4. Association Rule Analysis (Example)

In this example, the basic information (A1∼A7) and T1∼T23 are used as the antecedents of association rules, and T24∼T29 are used as the antecedents of association rules for association rule analysis. We set the support of association rules to 70% and the confidence to 90%, expecting to get high-quality rules and reduce the number of rules. Some rules we obtained are shown in Table5.Table 5
Example of association rule analysis.
ConsequentThe aforesaidSupport (%)Confidence (%)T28.4 = agreeT20 talk about news or interesting things that happen around you =Y70.89991.371T28.3 = agreeT20 talk about news or interesting things that happen around you =Y70.89991.353T28.3 = agreeT11 classmates and friends around =Y70.25890.452T28.4 = agreeT11 classmates and friends around =Y70.25890.339T28.3 = agreeT15 seek visual stimulation =N and T23 pretend to be someone else and make trouble = N and nationality = han nationality71.72190.222T28.4 = agreeT15 seek visual stimulation =N and T23 pretend to be someone else and make trouble = N and nationality = han nationality71.72190.148T28.3 = agreeT15 seek visual stimulation =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N75.94890.076T28.4 = agreeT23 pretend to be someone else and make trouble =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N77.14290.074T28.3 = agreeT23 pretend to be someone else and make trouble =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N77.14290.049T28.4 = agreePolitical outlook = masses and T12 I have experienced it, but I will never believe it again =N and T12 I hope online love can come to me = N70.23590.019T28.4 = agreeT15 seek visual stimulation =N and nationality = han nationality and T12 I have experienced it, but I will never believe it again = N75.94890.01We take the basic information in A1–A7 and T1–T29 in the questionnaire as the antecedents of association rules and T1–T29 as the antecedents of association rules for association rule analysis. In order to get higher quality rules and reduce the number of redundant and loop rules as much as possible, because there are many rules, we set the support and confidence as high as possible. We set the support at 75% and the confidence at 85%. Taking some association rules in the results as examples, the specific explanations are as follows:(1) Young students who agree that “China must develop a low-carbon, green economy and take the path of sustainable development” and agree that “honesty, trustworthiness and doing what one says is the bottom line that everyone should abide by” the main topic of chatting with people online does not love “(support 78.436% and confidence 89.599%). (2) Young students who agree that “filial piety to parents and respect for teachers are natural” and agree that “honesty and trustworthiness and doing what one says are the bottom lines that everyone should abide by” will also agree with the view that “tolerance is a virtue” (82.258% support and 97.1% confidence).Through the interpretation of the mined association rules, we can find the important relationships and laws contained therein to provide a practical basis for enriching the theoretical research of young students’ education and promoting the cultural education of young students.It can be seen from Figure9 and Table 6 that although the running time of the coevolutionary algorithm is slightly longer than that of the other two global optimization algorithms, the running time is completely within an acceptable range. Moreover, due to the effective introduction of the idea of coevolution, compared with the use of the other two algorithms for association rule mining, it not only has better mining quality but also has a significant advantage in the ability to jump out of the local optimal solution, realizing the search of high-quality association rules in high-dimensional datasets.Figure 9
Comparison diagram of Co, GA, and PSO applied to research database.Table 6
Running time of Co, GA, and PSO applied to the research database.
AlgorithmRunning time (s)Co5946.13GA4601.43PSO3153.56After obtaining the association rules, we use the algorithm introduced above for redundancy processing. The experimental results are shown in Table7.Table 7
Test results of dataset.
DatasetNumber of rules to be detectedNumber of redundant rulesNumber of rules after processingSet A23617Set B716Set C983464Set D927As shown in Table7, it can be seen that the use of hypergraph-based redundancy and loop detection methods can reduce the release of redundancy and loop policy, without wasting the capital mining, and facilitate user selection and implementation.


## 5. Conclusion

In the context of big data, the task of exploring the organization’s policy redundancy and improving the efficiency and effectiveness of the organization’s policy mining is more pressing, and it has been increased to become the gold research and a key tool in the organization of the mining law industry. In this study, a wood spanning partition method is adopted to eliminate the redundancy of organizational policies. By redefining the adjacency matrix and its directed hypergraph, it uses the adjacency matrix to reflect the relationship between the association rule items to be detected and uses the adjacency matrix to find the connected blocks. By running the program, it obtains the number of connected blocks contained in the directed hypergraph and the location of the connected blocks where each point is located. On this basis, the adjacency matrix of the spanning tree is obtained using the ring breaking method of the spanning tree of the connected graph, and a certain weight is given to avoid the possibility of deleting important rules, to obtain the minimum spanning tree. In this way, we can remove redundant rules by checking dependent rules and repeated path rules.



---

*Source: 1193586-2022-10-11.xml*