Assignment 1, Fall 2021 and 高级算法 (Fall 2021)/Problem Set 4: Difference between pages

From TCS Wiki
(Difference between pages)
Jump to navigation Jump to search
imported>Etone
(Created page with "==Question #1== 请使用多年(>20年)的NCEP/NCAR月平均再分析资料,画出各季节(至少画出冬夏两季)纬向平均温度场、纬向平均纬向风...")
 
imported>TCSseminar
 
Line 1: Line 1:
==Question #1==
*每道题目的解答都要有<font color="red" size=5>完整的解题过程</font>。中英文不限。


请使用多年(>20年)的NCEP/NCAR月平均再分析资料,画出各季节(至少画出冬夏两季)纬向平均温度场、纬向平均纬向风场的高度-纬度剖面分布,并简述其分布特征和季节变化特征。
== Problem 1 ==


==Question #2==
== Problem 2 ==
A ''<math>k</math>-uniform hypergraph'' is an ordered pair <math>G=(V,E)</math>, where <math>V</math> denotes the set of vertices and <math>E</math> denotes the set of edges. Moreover, each edge in <math>E</math> now contains <math>k</math> distinct vertices, instead of <math>2</math> (so a <math>2</math>-uniform hypergraph is just what we normally call a graph).
A hypergraph is <math>k</math>-regular if all vertices have degree <math>k</math>; that is, each vertex is exactly contained within <math>k</math> hypergraph edges.


请使用多年(>20年)的NCEP/NCAR月平均再分析资料,画出各季节(至少画出冬夏两季)温度场、纬向风场在各高度(850、500、100 hPa, 对于温度场请再画出1000hPa)上的水平分布,并简述其分布特征和季节变化特征。
Show that for sufficiently large <math>k</math>, the vertices of a <math>k</math>-uniform, <math>k</math>-regular hypergraph can be <math>2</math>-colored so that no edge is monochromatic.
What's the smallest value of <math>k</math> you can achieve?


==On the netcdf file==
== Problem 3 ==
Suppose we have graphs <math>G=(V,E)</math> and <math>H=(V,F)</math> on the same vertex set.
We wish to partition <math>V</math> into clusters <math>V_1,V_2,\cdots</math> so as to maximise:
:<math>(\#\text{ of edges in }E\text{ that lie within clusters})+(\#\text{ of edges in }F\text{ that lie between clusters}).</math>


Netcdf (Network Common Data Form) is a set of self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data. The project homepage is hosted by the [https://www.unidata.ucar.edu/software/netcdf Unidata program] at the University Corporation for Atmospheric Research (UCAR). They are also the chief source of netCDF software, standards development, updates etc.
* Show that the following SDP is an upperbound on this.
[http://www.esrl.noaa.gov/psd/data/gridded/tools.html 读取netcdf文件的几种方法]
:::<math>
 
\text{maximize} &&& \sum_{(u,v)\in E}\langle x_u,x_v\rangle+\sum_{(u,v)\in F}(1-\langle x_u,x_v\rangle) \\
==Read .nc using Matlab==
\begin{align}
<font color="red"> Matlab 2008b </font> 开始,Matlab 开始提供自带的读写.nc文件的函数。以下为读写.nc的一个样本matlab文件。对于图片,Matlab提供多种形式的存储。可在弹出图片的窗口左上方的下拉菜单中选择图片的存储方式,或者在命令行后用“print”命令存储图片(可以输入 help print 获得帮助)。关于Matlab的更多信息,可以去[http://www.mathworks.com/help Matlab网站]。
\text{subject to} && \langle x_u,x_u\rangle & =1, & \forall u & \in V, \\
 
&& \langle x_u,x_v\rangle & \ge0, & \forall u,v & \in V, \\
==下载区==
&& x_u & \in R^n, & \forall u & \in V.
本次作业所用的数据资料来自NCEP-DOE Reanalysis 2 的月平均资料,时间跨度为1979/1-2009/12。关于本资料的详细内容,请[http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis2.pressure.html 参见网站]。 以下为完成本次作业所需的数据文件和matlab文件。
\end{align}
 
</math>
NCEP-DOE 月平均温度场资料 (1979/1-2009/12): [http://tcs.nju.edu.cn/yzhang/air.mon.mean.nc nc file],[http://tcs.nju.edu.cn/yzhang/air_readme.txt 说明文件]
 
NCEP-DOE 月平均纬向风(U)资料 (1979/1-2009/12):  [http://tcs.nju.edu.cn/yzhang/uwnd.mon.mean.nc nc file],[http://tcs.nju.edu.cn/yzhang/uwnd_readme.txt 说明文件]
 
NCEP-land mask(用于在题目2中画出具体的海陆分布): [http://tcs.nju.edu.cn/yzhang/land.nc nc文件]
 
题目1和2的Matlab 样本文件: [http://tcs.nju.edu.cn/yzhang/sample_for_Q1.m 第一题m文件], [http://tcs.nju.edu.cn/yzhang/sample_for_Q2.m 第二题m文件]

Revision as of 08:10, 20 December 2021

  • 每道题目的解答都要有完整的解题过程。中英文不限。

Problem 1

Problem 2

A [math]\displaystyle{ k }[/math]-uniform hypergraph is an ordered pair [math]\displaystyle{ G=(V,E) }[/math], where [math]\displaystyle{ V }[/math] denotes the set of vertices and [math]\displaystyle{ E }[/math] denotes the set of edges. Moreover, each edge in [math]\displaystyle{ E }[/math] now contains [math]\displaystyle{ k }[/math] distinct vertices, instead of [math]\displaystyle{ 2 }[/math] (so a [math]\displaystyle{ 2 }[/math]-uniform hypergraph is just what we normally call a graph). A hypergraph is [math]\displaystyle{ k }[/math]-regular if all vertices have degree [math]\displaystyle{ k }[/math]; that is, each vertex is exactly contained within [math]\displaystyle{ k }[/math] hypergraph edges.

Show that for sufficiently large [math]\displaystyle{ k }[/math], the vertices of a [math]\displaystyle{ k }[/math]-uniform, [math]\displaystyle{ k }[/math]-regular hypergraph can be [math]\displaystyle{ 2 }[/math]-colored so that no edge is monochromatic. What's the smallest value of [math]\displaystyle{ k }[/math] you can achieve?

Problem 3

Suppose we have graphs [math]\displaystyle{ G=(V,E) }[/math] and [math]\displaystyle{ H=(V,F) }[/math] on the same vertex set. We wish to partition [math]\displaystyle{ V }[/math] into clusters [math]\displaystyle{ V_1,V_2,\cdots }[/math] so as to maximise:

[math]\displaystyle{ (\#\text{ of edges in }E\text{ that lie within clusters})+(\#\text{ of edges in }F\text{ that lie between clusters}). }[/math]
  • Show that the following SDP is an upperbound on this.
[math]\displaystyle{ \text{maximize} &&& \sum_{(u,v)\in E}\langle x_u,x_v\rangle+\sum_{(u,v)\in F}(1-\langle x_u,x_v\rangle) \\ \begin{align} \text{subject to} && \langle x_u,x_u\rangle & =1, & \forall u & \in V, \\ && \langle x_u,x_v\rangle & \ge0, & \forall u,v & \in V, \\ && x_u & \in R^n, & \forall u & \in V. \end{align} }[/math]