由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 大家看看这道题什么意思?我怎么不理解呢(C++)
相关主题
leetcode Palindrome Partitioning这道题在CC150或者leetcode上有吗?
问个计算化学问题:怎么读GRID?这道题怎么做的?
A家第一次电面integer to roman的考点在哪里呢?
请问怎么在matlab 里面画平滑得曲线啊?G家这道题怎么做的?
web count 设计gas station这道题有个case过不了
这道题难不难?实在理解不了DP、图论等题,可以死记硬背么?
问一个多次遇到的面试题请教一个Axis-Aligned Rectangles的算法
这道题,怎么做呀?leetcode上Symmetric Tree这道题怎么用iterative的方法做?
相关话题的讨论汇总
话题: write话题: v2话题: v1话题: c++话题: values
进入JobHunting版参与讨论
1 (共1页)
b**********t
发帖数: 37
1
Given two vectors V1 and V2 of doubles. The former represents values along
the x-axis and the later the values of a function f at those points. Write
a function that takes V1 and V2 and const double x as inputs and returns the
interpolated value of f(x).
s*****r
发帖数: 773
2
regression?

Write
the

【在 b**********t 的大作中提到】
: Given two vectors V1 and V2 of doubles. The former represents values along
: the x-axis and the later the values of a function f at those points. Write
: a function that takes V1 and V2 and const double x as inputs and returns the
: interpolated value of f(x).

b**********t
发帖数: 37
3
应该不是吧,这只是C++的题目啊。

【在 s*****r 的大作中提到】
: regression?
:
: Write
: the

P*******e
发帖数: 1353
4
人家说了让你interpolation了啊,算法可以简单一些吧,不知道是不是可以assue是线性

【在 b**********t 的大作中提到】
: 应该不是吧,这只是C++的题目啊。
s*****r
发帖数: 773
5
让你用C++写程序算结果啊

【在 b**********t 的大作中提到】
: 应该不是吧,这只是C++的题目啊。
b**********t
发帖数: 37
6
说的是,那具体用什么方法呢?

【在 s*****r 的大作中提到】
: 让你用C++写程序算结果啊
r********g
发帖数: 1351
7
我的理解是在v1查找x,返回index,然后输出v2[index]? 那可以用binary search吗?

【在 b**********t 的大作中提到】
: 说的是,那具体用什么方法呢?
s*******s
发帖数: 1568
8
use langurange polynominals to do the numerical interpolation. If you don't
have background in numerical analysis, then you don't need to prepare this.

Write
the

【在 b**********t 的大作中提到】
: Given two vectors V1 and V2 of doubles. The former represents values along
: the x-axis and the later the values of a function f at those points. Write
: a function that takes V1 and V2 and const double x as inputs and returns the
: interpolated value of f(x).

k***e
发帖数: 556
9
did not expect interview will include basic numerical algorithms. learned 10
years ago ;<
then next question is LU decomposition?
this world is so crazy!

t

【在 s*******s 的大作中提到】
: use langurange polynominals to do the numerical interpolation. If you don't
: have background in numerical analysis, then you don't need to prepare this.
:
: Write
: the

b**********t
发帖数: 37
10
拉格郎日??我高中倒是学过,是凑一个n阶多项式的公式,使得多项式在n个给定点取
到n个给定值。

t

【在 s*******s 的大作中提到】
: use langurange polynominals to do the numerical interpolation. If you don't
: have background in numerical analysis, then you don't need to prepare this.
:
: Write
: the

a**x
发帖数: 154
11
我猜用taylor expansion 吧
a****l
发帖数: 8211
12
"langurange" may be sexy for an interview to showoff your "mathematical
knowledge", but I quite often find its results funny. The simple linear
method always works and does not give funny results.

t

【在 s*******s 的大作中提到】
: use langurange polynominals to do the numerical interpolation. If you don't
: have background in numerical analysis, then you don't need to prepare this.
:
: Write
: the

1 (共1页)
进入JobHunting版参与讨论
相关主题
leetcode上Symmetric Tree这道题怎么用iterative的方法做?web count 设计
大牛来做一下这道题这道题难不难?
[合集] 被这道题给放翻了问一个多次遇到的面试题
再来讨论一个题!这道题,怎么做呀?
leetcode Palindrome Partitioning这道题在CC150或者leetcode上有吗?
问个计算化学问题:怎么读GRID?这道题怎么做的?
A家第一次电面integer to roman的考点在哪里呢?
请问怎么在matlab 里面画平滑得曲线啊?G家这道题怎么做的?
相关话题的讨论汇总
话题: write话题: v2话题: v1话题: c++话题: values