原创 oracle數據庫基本語法及查詢

一.SQL語句及子查詢的用法: 這裏是在scott用戶下完成的,首先需要解鎖scott用戶 alter user scott account unlock; password scott; set timing on; set time

原创 快速排序

#define maxsize 3 typedef struct{ string name; int Math; int English; int Chinese; int key; }student; typedef st

原创 線性表的插入刪除查找

建立動態數組,分成兩部分:數據elem和線性表的長度length,elem與initsize爲數據的捆綁 typedef struct{ elemtype* elem; int initsize; int length; }sq

原创 二叉樹的創建 先序 中序 後序以及層次遍歷

不要忘記引入queue隊列頭文件 typedef int telemtype; struct bitnode{ telemtype data; bitnode* lchild; bitnode* rchild; }; type

原创 決策樹分類數據挖掘

※寫在前面的思考: A數據是怎麼分類的? B如何選擇分類的屬性? C什麼時候停止分裂? ①決策樹 1. 決策樹分類方法 從數據中生成分類器的一個有效的方法就是生成一個決策樹。是從一組無次序、無規則的事例中推理出決策樹表示形式的分類規則

原创 堆排序

#define maxsize 3 typedef struct{ string name; int Math; int English; int Chinese; int key; }student; typedef st

原创 鏈表的插入刪除合併

typedef int elemtype; 定義elemtype爲int類型 //鏈表有數據域和指針域 struct lnode{ elemtype data; lnode* next;//指向相同類型的指針 }; typede

原创 關聯規則與數據分析

關聯規則數據挖掘關聯規則1.關聯規則的產生背景2. 基本概念與原理Aprioir算法用SSAS對醫療數據進行關聯分析 關聯規則 1.關聯規則的產生背景 最早是由Agrawal等人提出的(1993)。最初的動機是針對購物籃分析(Bask

原创 基於銀行數據庫 存儲過程、函數、觸發器、遊標練習

--存儲過程 函數 觸發器 複習 --1.輸入任意支行,統計其總客戶(存款客戶和貸款客戶)的個數,這裏要單獨寫 --create function customer_count4(@branch_name nvarchar(30)) --

原创 在GridView Web服務器控件中的分頁

using System;using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.We

原创 僱員數據庫查詢

--3.9 --a.找出所有爲'small Bank Corporation'工作的僱員的名字及其居住的城市 select employee.employee_name,city from employee join works on(e

原创 列表控件

後臺代碼 using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using Sy

原创 基於銀行數據庫查找練習

--3.8 a 找出銀行中所有有賬戶但無貸款的客戶 select distinct customer_name from depositor where customer_name not in(     select customer_

原创 鏈表的合併(升序和降序)

鏈表的合併 la+lb->lc升序問題描述:la :2 4 6 8lb: 3 5 7 9lc  :   2 3 4 5 6 7 8 9#include <iostream>#include <cstdlib>typedef int ele

原创 拓撲排序

拓撲排序定義:由某個幾何上的一個偏序得到這個集合上的全序,這個操作稱爲拓撲排序。偏序->全序:增加了原來偏序中沒有的優先關係(保留了原來的偏序關係,對於新增加的優先關係,沒有先後順序要求)。沒有前驅的元素,說明沒有先決條件;(多個沒有前驅