zoukankan      html  css  js  c++  java
  • 2020年9月份面试题

    面试求解

    2020.9.14数据库问题设置:

    1.在机器人站中,有一些摄像机捕捉到一组图像,我们称之为“数据”。数据包含一个rgb图像和一个深度图像。除了图像路径之外,数据中还有一些信息:时间戳、相机id和捕获质量(好或坏)。请按照模板设计mysql表'data'

    数据+ - + - + - + | id (int) | rgb(文本)|深度(文本)+ - + - + - +

    2.我们需要向多个数据集追加一些数据,并且每个数据集都有一个标题。请设计2个表来记录数据集,以及数据和数据集之间的关系。

    3.请使用SQLto查询表中满足以下条件的数据

    -时间戳= 2020/09/03

    -在id为2的数据集中

    4.根据上一个问题,如果表‘data’中有数百万行,我们需要查询满足以下条件的唯一数据。通常的mysql查询方法无法达到要求的速度。你将如何设计这个系统?

    时间戳= 2020/09/03

    相机id = 'xyzcam132456'

    请注意,这是一个开放问题,您可以提出许多方法来加速查询。(提示:我们可以使用mYSQL之外的其他工具)

    METHOD1

    第4题,如果求快的,可以使用缓存,比如说用redis中列表,以机器名+日期作为key,具体的图片路径为value进行缓存。 某一天的数据可以放到这个redis列表中,如果要用的话,直接通过redis管道获取这个列表中的所有数据。

    es

    database question set: 1.in a robot station,there are serval cameras capturing a set of images which we call it as 'data' is. data contains a rgb image and a depth image . in addition to the image path,there is some information in data:timestamped, camera id, and capture quality, which is good or not. Please follow the template to design a mysql table 'data'

    data+-----+----+-------+|id(int)|rgb(text)|depth(text)+----------------+-------------+-------------+

     

    2.we need to append several data to multiple dataset, and each dataset has a title . Please design 2 tables to record dataset,and the relationship between data and dataset.

    3.Please use SQLto query the data from the table data which satisty the following condition

    • timestamped = 2020/09/03

    • in the dataset whose id is 2

    4.Following the previous question, if there are millions of rows in the table 'data' we need to query a unique data which satisfies the following condition. and the query time need to less than 10millisecond .The usual mysql query method can't achieve the required speed. How will you design the system?

    timestamped = 2020/09/03

    camera id = 'xyzcam132456'

    note that it's an open question ,you can propose many methods to speed up query.(hint:we can use another tool other than mYSQL)

    METHOD1

  • 相关阅读:
    七种常见的回归分析—转载
    Python模块之 __future__ 转载
    Java 快速排序
    在给定范围内产生指定个数不重复的随机数
    Java 冒泡排序
    jquery文本框效果
    jquery复选框
    struts2下的Ajax
    java线程系列---Runnable和Thread的区别
    System.getProperty("user.dir")
  • 原文地址:https://www.cnblogs.com/mandywang/p/13678143.html
Copyright © 2011-2022 走看看